Zanir » Blog Archive » Program 16 – Shadows by render to texture

Program 16 – Shadows by render to texture

06.07.2002

016_shadow_used_render_to_textureShadows are make with light maps. Light maps are created with render to texture. Light map was creat for each wall, so camera is moved to light position and draw with dark color all objects which cast shadows. This technique is possible used only shadows which cast to planar surfaces.

source code (without jpeg.lib) and executable – 222kB

Leave a Reply