Browse Source

Use simpler stencil test compare for light volumes.

Lasse Öörni 14 years ago
parent
commit
a39e2eb5eb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Engine/Graphics/View.cpp

+ 1 - 1
Engine/Graphics/View.cpp

@@ -2344,7 +2344,7 @@ void View::SetupLightVolumeBatch(Batch& batch)
     }
     }
     
     
     graphics_->SetScissorTest(false);
     graphics_->SetScissorTest(false);
-    graphics_->SetStencilTest(true, CMP_LESS, OP_KEEP, OP_KEEP, OP_KEEP, 0, light->GetLightMask());
+    graphics_->SetStencilTest(true, CMP_NOTEQUAL, OP_KEEP, OP_KEEP, OP_KEEP, 0, light->GetLightMask());
 }
 }
 
 
 void View::DrawFullscreenQuad(Camera* camera, bool nearQuad)
 void View::DrawFullscreenQuad(Camera* camera, bool nearQuad)