This WebGL demo renders shadow maps using the Frame Buffer Object. Since OpenGL ES 2.0 does not support depth textures, the depth is recorded and packed to an RGBA texture image. It is unpacked during the final render to compute the shadow depth test.

The demo utilizes:
  • Suzanne from Blender.

  • Nutty WebGL Engine.