WebGL - MVP Matrix and Depth

In this episode, I discuss the depth buffer and the ModelViewProjection (MVP) matrix in WebGL.

Concepts:
* 3d: ModelViewProjection (MVP) Matrix
* Combining multiple matrices into one single matrix

* APIs
* gl.DEPTH_BUFFER_BIT // Clears the buffer bit
* gl.DEPTH_TEST //Activates depth comparisons and updates to the depth buffer.

Resources:
* https://github.com/davidwparker/programmingtil-webgl/tree/master/0059-mvp-matrix

© programmingtil.com