Show Depth with Values of Grey

Swipe in a Circle Over the Canvas

WebGL Framebuffer with Depth Texture

Swipe in circles as squares move off into the distance, then close again. Notice the closer the square the darker the color.

This example renders to texture. Employs a Framebuffer with one texture depth attachment. The canvas displays just the depth texture.

Copyright © 2015 Seven Thunder Software. All Rights Reserved.