From be017b17a04254f949bf5feb4523ec7c9b9d0bf5 Mon Sep 17 00:00:00 2001 From: Evan Goers Date: Sun, 22 Jan 2012 08:21:43 +0000 Subject: Brought the modelview light back a bit and set the magic diffuse/specular numbers to match globe lights. --- src/ui/modelview.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ui') diff --git a/src/ui/modelview.cc b/src/ui/modelview.cc index 61504d1..6d10c28 100755 --- a/src/ui/modelview.cc +++ b/src/ui/modelview.cc @@ -188,13 +188,13 @@ void ModelView::draw() // we set up the light in camera space - GLfloat modelview_light[] = { -2.0f * model->radius(), 0, 0, 1.0f }; + GLfloat modelview_light[] = { -10.0f * model->radius(), 0, 0, 1.0f }; GLfloat ambient_light[] = { 0.25f, 0.25f, 0.25f, 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.6f; - specular_light[i] = render::r_specular->value() * 0.2f; + diffuse_light[i] = render::r_diffuse->value() * 0.8f; + specular_light[i] = render::r_specular->value() * 0.4f; } diffuse_light[3] = 1.0f; specular_light[3] = 1.0f; -- cgit v1.2.3