Summary
In this chapter we learned how to use textures to add a new level of detail to our scenes. We covered how to create and manage texture objects, and use HTML images as textures. We examined the various filter modes and how they affect the texture appearance and usage, as well as the available texture wrapping modes and how they alter the way texture coordinates are interpreted. We learned how to use multiple textures in a single draw call, and how to combine them in a shader. Finally, we learned how to create and render cube maps, and saw how they can be used to simulate reflective surfaces.
Coming up in the next chapter, we'll look at selecting and interacting with objects in the WebGL scene with your mouse, otherwise known as picking.