diff options
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/draw.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/draw.cc b/src/render/draw.cc index c575f20..8d8ea1f 100644 --- a/src/render/draw.cc +++ b/src/render/draw.cc @@ -472,7 +472,7 @@ void pass_prepare(float seconds) GLfloat specular_light[] = { 0.2f, 0.2f, 0.2f, 1.0f }; for (size_t i=0; i <3; i++) { - light_position[i] = globe->location()[i]; + light_position[i] = globe->location()[i] - render::Camera::eye()[i]; diffuse_light[i] = globe->color()[i] * 0.4; } light_position[3] = 1.0f; |