diff options
author | Evan Goers <mega@osirion.org> | 2012-01-24 04:36:42 +0000 |
---|---|---|
committer | Evan Goers <mega@osirion.org> | 2012-01-24 04:36:42 +0000 |
commit | d20adb868fe02e9e7aa8a262b3cd4c5dd01d5eea (patch) | |
tree | 57ac6f38302bd143cc89ee5217e6788eef88b20e /src/ui | |
parent | b8e725f88fde5bfec67e5213f7e1c183bac63e33 (diff) |
Got rid of r_diffuse/r_specular/r_ambient.
Diffstat (limited to 'src/ui')
-rwxr-xr-x | src/ui/modelview.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/modelview.cc b/src/ui/modelview.cc index 6d10c28..ec840c1 100755 --- a/src/ui/modelview.cc +++ b/src/ui/modelview.cc @@ -189,12 +189,12 @@ 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.25f, 0.25f, 0.25f, 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] = render::r_diffuse->value() * 0.8f; - specular_light[i] = render::r_specular->value() * 0.4f; + diffuse_light[i] = 0.8f; + specular_light[i] = 0.4f; } diffuse_light[3] = 1.0f; specular_light[3] = 1.0f; |