Hey, this video describes the WebGL stencil buffer and how to use it. With the stencil buffer you can hide or show parts of mesh objects. We develop a magic cube, where each cube faces shows or hides certain meshes. Chech out the github repo of this example!
Github: [ Ссылка ]
Stackblitz: [ Ссылка ]
(00:00) - Intro
(00:28) - How does Stencil Buffer work
(02:40) - Implement a Magic Cube
(07:34) - Outro
![](https://i.ytimg.com/vi/X93GxW84t84/maxresdefault.jpg)