diff options
-rw-r--r-- | scene.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -370,6 +370,9 @@ void Scene::render() { //const float light_pos[4] = {0, 1, 0, 0}; //glLightfv(GL_LIGHT0, GL_POSITION, light_pos); + glEnable(GL_CULL_FACE); + glCullFace(GL_BACK); + if(render_terrain) { const float fog_color[4] = {1, 1, 1, 0}; glFogfv(GL_FOG_COLOR, fog_color); @@ -434,6 +437,7 @@ void Scene::render() { // set active to texture0 to avoid breaking the texture font glActiveTexture(GL_TEXTURE0); + glDisable(GL_CULL_FACE); glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); water_program.use(); |