diff options
author | Stijn Buys <ingar@osirion.org> | 2008-07-31 12:59:50 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-07-31 12:59:50 +0000 |
commit | d45ea5e5e60c09c1856a90928dca557262a335e9 (patch) | |
tree | 099ea03b27bb55df0614717e68e0ec1bffdbb0dc | |
parent | 3da609588ad6fe7eb0581e4678a2ec8c6c1c4a18 (diff) |
correction sunlight position relative to camera
-rw-r--r-- | src/core/player.cc | 2 | ||||
-rw-r--r-- | src/render/draw.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/player.cc b/src/core/player.cc index 9f531ed..ba5ffbe 100644 --- a/src/core/player.cc +++ b/src/core/player.cc @@ -158,7 +158,7 @@ void Player::add_asset(EntityControlable *entity) { entity->entity_owner = this; assets.push_back(entity); - con_debug << " adding asset " << entity->id() << " to player " << id() << std::endl; + //con_debug << " adding asset " << entity->id() << " to player " << id() << std::endl; } void Player::remove_asset(EntityControlable *entity) 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; |