Zanir » Blog Archive » Program 20 – Stencil Shadow

Program 20 – Stencil Shadow


020_Stencil_ShadowProgram show stencil shadow and bump mapping with attenuation. I use z-fail algorithm which is described in Practical and Robust Shadow Volumes (.pdf) (2153 KB) document.

Program request hardware accelerated 8 bits stencil buffer. Uses also pixel shader 1.1.

source code and executable – 650kB

Leave a Reply