Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/state.cc')
-rw-r--r--src/render/state.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/render/state.cc b/src/render/state.cc
index ab5eec4..f5cbb8d 100644
--- a/src/render/state.cc
+++ b/src/render/state.cc
@@ -137,8 +137,6 @@ void State::clear()
//gl::shademodel(GL_FLAT);
// lighting model
- GLfloat global_ambient[] = { 0.1f, 0.1f, 0.1f, 1.0f };
- glLightModelfv(GL_LIGHT_MODEL_AMBIENT, global_ambient);
glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, GL_TRUE);
// color tracking
@@ -291,7 +289,8 @@ void State::use_material(const model::Material * material) {
gl::enable(GL_TEXTURE_GEN_S);
gl::enable(GL_TEXTURE_GEN_T);
gl::enable(GL_TEXTURE_GEN_R);
- }
+ }
+ //FIXME provide a fallback for zones without a skybox
}
}