Required: GL_ARB_multitexture
GL_EXT_texture_env_dot3
GL_ARB_texture_env_combine
GL_EXT_texture_edge_clamp
GL_EXT_texture3D
GL_ARB_texture_env_crossbar or GL_NV_texture_env_combine4
This demo shows dynamic per-pixel lighting with shadows and proper shadow overlapping. The shadows are created by using the stencil buffer and Carmacks reversed algoritm.