Stencil Shadows

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?

http://www.opengl.org/developers/code/mjktips/TexShadowReflectLight.html