Solid Colored Cube
Shading from Depth Texture
Framebuffer with Color and Depth Texture Attachments
Swipe to move the cube.
This example combines post processing with a depth map.
Read post processing details.
The printout, below, indicates useful
See the WebGL Feature Test Example
with tutorial and source code for WebGL attribute information.
This WebGL example also displays WebGL attributes to the Web page including alpha, antialias, depth, stencil, and premultiplied alpha. Each attribute may be needed based on the desired effect.