Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rwxr-xr-xsrc/ui/modelview.cc12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/ui/modelview.cc b/src/ui/modelview.cc
index ec840c1..65954d8 100755
--- a/src/ui/modelview.cc
+++ b/src/ui/modelview.cc
@@ -190,21 +190,15 @@ void ModelView::draw()
// we set up the light in camera space
GLfloat modelview_light[] = { -10.0f * model->radius(), 0, 0, 1.0f };
GLfloat ambient_light[] = { 0.1f, 0.1f, 0.1f, 1.0f };
- GLfloat diffuse_light[4];
- GLfloat specular_light[4];
- for (size_t i = 0; i < 3; i++) {
- diffuse_light[i] = 0.8f;
- specular_light[i] = 0.4f;
- }
- diffuse_light[3] = 1.0f;
- specular_light[3] = 1.0f;
+ GLfloat diffuse_light[] = { 0.75f, 0.75f, 0.75f, 1.0f };
+ GLfloat specular_light[] = { 0.75f, 0.75f, 0.75f, 1.0f };
glLightfv(GL_LIGHT1, GL_POSITION, modelview_light);
glLightfv(GL_LIGHT1, GL_AMBIENT, ambient_light);
glLightfv(GL_LIGHT1, GL_DIFFUSE, diffuse_light);
glLightfv(GL_LIGHT1, GL_SPECULAR, specular_light);
- glLightf(GL_LIGHT1, GL_LINEAR_ATTENUATION, 0.05f);
+ glLightf(GL_LIGHT1, GL_LINEAR_ATTENUATION, 0.75f);
gl::enable(GL_LIGHT1);