Browse Source

more depth testing

testing
totallyfake 1 year ago
parent
commit
7d46eeea77
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/game.cpp

+ 1
- 1
src/game.cpp View File

@@ -113,12 +113,12 @@ void Game::loop() {

activeScene->update(dTime);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

glBindFramebuffer(GL_FRAMEBUFFER, mFBO);
glDepthFunc(GL_GREATER);
glClearDepth(0.0f);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
activeScene->draw(); //draw the scene
glBindFramebuffer(GL_FRAMEBUFFER, 0);

Loading…
Cancel
Save