Working stencil buffer for the shield.

This commit is contained in:
Tleety
2016-02-04 14:33:39 +01:00
parent 379d211832
commit 7c582898f4
8 changed files with 41 additions and 32 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ DrawFinalPassState::DrawFinalPassState(GLuint frameBuffer)
Enable(GL_STENCIL_TEST);
StencilFunc(GL_NOTEQUAL, 1, 0xFF);
StencilOp(GL_KEEP, GL_KEEP, GL_REPLACE);
StencilMask(0x00);
StencilMask(0xFF);
ClearColor(glm::vec4(0.f, 0.f, 0.f, 0.f));
}