WebGL - MVP Matrix and Depth
In this episode, I discuss the depth buffer and the ModelViewProjection (MVP) matrix in WebGL.
Concepts:
Resources:
Concepts:
- 3d: ModelViewProjection (MVP) Matrix
- Combining multiple matrices into one single matrix
- APIs
- gl.DEPTHBUFFERBIT // Clears the buffer bit
- gl.DEPTHTEST //Activates depth comparisons and updates to the depth buffer.
Resources:
- https://github.com/davidwparker/programmingtil-webgl/tree/master/0059-mvp-matrix
© programmingtil.com