Skip to content

Commit

Permalink
Reenable sky box and clear appropriately
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommy C. Li committed Mar 20, 2012
1 parent d22ec82 commit 0595bec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/scala/Game.scala
Expand Up @@ -196,13 +196,15 @@ object Main {
// Render final shader
finalFbo.bind()

glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT)

glEnable(GL_BLEND)
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)

testShader.use()
camera.loadGLMatrices()

//skybox.render(camera, testShader)
skybox.render(camera, testShader)

finalShader.use()
ViewMode.bindGBufs(finalShader)
Expand Down

0 comments on commit 0595bec

Please sign in to comment.