i have a little problems with shadow volumes. I have drawn my shadow volumes and the shadow is ok, but my object who throws the shadow is in the shadow too. I think i have to close the shadow volume.
I have drawn the object with incrementing the stencil buffer after i have drawn the shadow volumes, but it has no effect.
Later i have test to render the scene with lighting (shadow volumes without closing) and the stencilfunc
glStencilFunc(GL_EQUAL, 1, 0xff);
and my object is in the light. But normally the stencil value of my object should have a value like -1 or 255 or something like that.
perhas someone can help me, thanks.