diff options
-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; |