O'Reilly logo

WebGL Beginner's Guide by Brandon Jones, Diego Cantor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required