"Majority rule only works if you're also considering individual rights. Because you can't have five wolves and one sheep voting on what to have for supper."
- Larry Flynt
Framework 4 (Last updated: October 25, 2019) Framework 3 (Last updated: February 6, 2017) Framework 2 (Last updated: October 8, 2006) Framework (Last updated: October 8, 2006) Libraries (Last updated: September 16, 2004) Really old framework (Last updated: September 16, 2004)StencilShadows Wednesday, March 13, 2002 | Permalink
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.