Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-03-06 21:49:54 +0000
committerStijn Buys <ingar@osirion.org>2008-03-06 21:49:54 +0000
commitd1b9fa9ebb493674c95983fe690bffb730b1ece2 (patch)
tree1de0975318cb41835f87c0a27f76e5f7c60ca7b7 /src/client/view.cc
parentc3d56342784bd97cce666f24539db31cbd5506d9 (diff)
moving model to core
Diffstat (limited to 'src/client/view.cc')
-rw-r--r--src/client/view.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/client/view.cc b/src/client/view.cc
index cd90efc..bf69072 100644
--- a/src/client/view.cc
+++ b/src/client/view.cc
@@ -52,24 +52,22 @@ void reset()
//gl::shademodel(GL_FLAT);
// lighting
+ GLfloat light_position[] = { 0.0, 0.0, 0.0, 1.0 };
GLfloat ambient_light[] = { 0.2f, 0.2f, 0.2f, 1.0f };
- GLfloat diffuse_light[] = { 0.6f, 0.6f, 0.6f, 1.0f };
- GLfloat specular_light[] = { 0.2f, 0.2f, 0.2f, 1.0f };
- GLfloat specular_reflectance[] = { 1.0f, 1.0f, 1.0f, 1.0f };
+ GLfloat diffuse_light[] = { 0.4f, 0.4f, 0.4f, 1.0f };
+ GLfloat specular_light[] = { 0.4f, 0.4f, 0.4f, 1.0f };
+ GLfloat specular_reflectance[] = { 0.5f, 0.5f, 0.5f, 1.0f };
+ glLightfv(GL_LIGHT0, GL_POSITION, light_position);
glLightfv(GL_LIGHT0, GL_AMBIENT, ambient_light);
glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuse_light);
glLightfv(GL_LIGHT0, GL_SPECULAR, specular_light);
- // position GL_LIGHT0 at the camera eye
- GLfloat light_position[] = { 0.0, 0.0, 0.0, 1.0 };
- glLightfv(GL_LIGHT0, GL_POSITION, light_position);
-
// color tracking
glColorMaterial(GL_FRONT, GL_AMBIENT_AND_DIFFUSE);
glMaterialfv(GL_FRONT, GL_SPECULAR, specular_reflectance);
- glMateriali(GL_FRONT, GL_SHININESS, 16); // shininess 1-128
+ glMateriali(GL_FRONT, GL_SHININESS, 128); // shininess 1-128
gl::disable(GL_LIGHTING);
gl::disable(GL_LIGHT0);