diff options
-rw-r--r-- | src/render/lightenvironment.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/lightenvironment.cc b/src/render/lightenvironment.cc index 1c61762..cacb80a 100644 --- a/src/render/lightenvironment.cc +++ b/src/render/lightenvironment.cc @@ -74,7 +74,7 @@ void LightEnvironment::draw(const math::Vector3f translate) Light *light = (*it); for (size_t i = 0; i < 3; i++) { - gl_light_location[i] = light->location()[i]; + gl_light_location[i] = light->location()[i] + translate[i]; gl_ambient_light[i] = light->color()[i] * env_ambient_intensity; gl_diffuse_light[i] = light->color()[i] * env_diffuse_intensity; gl_specular_light[i] = light->color()[i] * env_specular_intensity; |