Don't wrap stencil values

This commit is contained in:
Matthias Schiffer 2009-12-24 03:42:18 +01:00
parent 2a6009e8f2
commit a7a5ae60e4

View file

@ -71,7 +71,7 @@ class Renderer {
Shader::disable();
glFrontFace(GL_CCW);
glStencilOp(GL_KEEP, GL_INCR_WRAP, GL_KEEP);
glStencilOp(GL_KEEP, GL_INCR, GL_KEEP);
glBegin(GL_TRIANGLES);
for(std::vector<ShadowVolume>::iterator v = shadowVolumes.begin(); v != shadowVolumes.end(); ++v) {
@ -80,7 +80,7 @@ class Renderer {
glEnd();
glFrontFace(GL_CW);
glStencilOp(GL_KEEP, GL_DECR_WRAP, GL_KEEP);
glStencilOp(GL_KEEP, GL_DECR, GL_KEEP);
glBegin(GL_TRIANGLES);
for(std::vector<ShadowVolume>::iterator v = shadowVolumes.begin(); v != shadowVolumes.end(); ++v) {