Skip to Content
WebGL Programming Guide: Interactive 3D Graphics Programming with WebGL
book

WebGL Programming Guide: Interactive 3D Graphics Programming with WebGL

by Kouichi Matsuda, Rodger Lea
July 2013
Intermediate to advanced
600 pages
15h 15m
English
Addison-Wesley Professional
Content preview from WebGL Programming Guide: Interactive 3D Graphics Programming with WebGL

Appendix E. The Inverse Transpose Matrix

The inverse transpose matrix, previously introduced in Chapter 8, “Lighting Objects,” is a matrix that determines the inverse of a given matrix and then transposes it. As shown in Figure E.1, the direction of the normal vector of an object is subject to change depending on the type of the coordinate transformation. However, if you use the inverse transpose of the model matrix, you can safely ignore this in calculations.

Image

Figure E.1 The direction of normal vector changes along with the coordinate transformation

In Chapter 8, you saw how to use the inverse transpose of the model matrix to transform normals. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Real-Time 3D Graphics with WebGL 2 - Second Edition

Real-Time 3D Graphics with WebGL 2 - Second Edition

Farhad Ghayour, Diego Cantor

Publisher Resources

ISBN: 9780133364903Purchase bookOther