PDA

View Full Version : Stencil Shadows



02-21-2002, 01:44 AM
Hey all,

I have done some reading on stencil shadows, and was wondering if i had this right...

1) draw scene normally
2) render back faces from lights pov and decrement stencil buffer when depth test fails
3) render front faces from lights pov and increment stencil buffer when depth test fails


is this right?

Leyder Dylan
02-21-2002, 08:23 AM
http://www.opengl.org/developers/code/mjktips/TexShadowReflectLight.html