Chapter 8. Add Rendering Effects Using Built-in Post-processes

Remember Chapter 4, Using Materials to Customize 3D Objects Appearance, about materials? Behind the materials are GPU programs called shaders. Shaders are a combination of two linked programs: the vertex shader and the pixel shader. The vertex shader works on vertices (transforms their 3D positions to 2D positions on the screen), while the pixel shader works on pixels (determines the final color of each pixel). Here, you can see the post-processes to be only a pixel shader since the vertex shader is the same for all.

Finally, the post-processes tend to create effects only in the view space. In other words, the post-processes are never applied to objects such as meshes, they are applied ...

Get Babylon.js Essentials now with O’Reilly online learning.

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