chrismflynn.wordpress.com
Fun with Shaders and the Depth Buffer | Chris Flynn's Blog and Such
https://chrismflynn.wordpress.com/2012/09/06/fun-with-shaders-and-the-depth-buffer
Chris Flynn's Blog and Such. Video Game Programming and Design. Saving Game Data Using XML and Reflection. Fun with Shaders and the Depth Buffer. September 6, 2012. Recently, I read this presentation. Here is a quick video of what these two shaders accomplish. Both cubes use the Depth Shader, while the sphere and the plane use the Intersection Highlighting Shader. In order to read the depth buffer, we have to tell the camera to write to it. Luckily, that is as easy as flipping a switch:. The main reason ...