Don't wrap stencil values
This commit is contained in:
parent
2a6009e8f2
commit
a7a5ae60e4
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Reference in a new issue