   Stencil shadows bug
  Hey,In my scene, cubes are being rendered to represent walls. At the moment, some of these cubes have a shadow volume. When I move the light source, the shadow dissapears when the lightsource X is smaller then 2 faces on my cube. These 2 cube faces are suddenly defined as "back faces", because they are cutting the already existing shadows.How is it possible that suddenly only these 2 (z direction) faces of a cube are getting negative/flipped and causing therefore undesired effects? When I render the shadow as geometry without stencil testing, it seems to cover the correct area.Shadow still being rendered ok, the floating box on top represents the lightsource:The z faces are cutting the other face shadows, the floating box on top represents the lightsource:
  The problem might be the fact that when the lightsource moves, the vertices which make up the shadow volume are (probably?) ordered negative... from clockwise to anticlockwise and visa versa... And so the definition of a front face and backface might get screwed up...At least I found the problem now I think:)