Chapter 4. More Transformations and Basic Animation

Chapter 3, “Drawing and Transforming Triangles,” explained how to use the buffer object to draw more complex shapes and how to transform them using simple equations. Because this approach is cumbersome for multiple transformations, you were then introduced to matrices and their use to simplify transformation operations. In this chapter, you explore further transformations and begin to combine transformations into animations. In particular, you will

• Be introduced to a matrix transformation library that hides the mathematical details of matrix operations

• Use the library to quickly and easily combine multiple transformations

• Explore animation and how the library helps you animate simple shapes ...

Get WebGL Programming Guide: Interactive 3D Graphics Programming with WebGL now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.