shadow mapping with glsl
per-pixel lighting + light mapping + shadow mapping 构成光照系统。
需要硬件支持如下扩展:
GL_ARB_multitexture,
GL_ARB_shader_objects,
GL_ARB_vertex_shader,
GL_ARB_vertex_program,
GL_ARB_fragment_shader,
GL_ARB_fragment_program,
GL_ARB_depth_texture,
WGL_ARB_pixel_format,
WGL_ARB_pbuffer,
WGL_ARB_render_texture,
WGL_NV_render_depth_texture
控制方式:
wasdzxqe 控制视角
ijkluom, 控制光源
esc 退出
Demo:
http://downloads.cnblogs.com/CGTeam/Member/Pointer/dlls.rar
https://files.cnblogs.com/Pointer/shadow_mapping_with_glsl.rar