- //Z-Pass
- glColorMask(FALSE,FALSE,FALSE,FALSE);
- glenable(GL_DEPTH_TEST);
- glDepthFunc(GL_LEQUAL);
- glenable(GL_CULL_FACE);
- glCullFace(GL_BACK);
- glFrontFace(GL_CCW);
- DrawSceneWithOnlyVertice();
- //Render-Pass
- glColorMask(TRUE,TRUE,TRUE,TRUE);
- glDepthFunc(GL_EQUAL);
- DrawScene();
- //GUI-Pass
- glDisable(GL_DEPTH_TEST);
- glDisable(GL_CULL_FACE);
- DrawGUI();