This demo shows how to render to depth textures for shadow mapping in OpenGL through the WGL_ARB_render_texture and WGL_NV_render_depth_texture extensions.