Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-05-24 12:16:47 +0000
committerStijn Buys <ingar@osirion.org>2008-05-24 12:16:47 +0000
commit1b8c92e759adf6605803d86931d349a06f963554 (patch)
tree3bcb6542afc2b34aada27fbabe107161968021b2 /src
parent834c9c0c4efef1cb3860718e374cc7cc23b61985 (diff)
Planets don't get camera light
Diffstat (limited to 'src')
-rw-r--r--src/render/draw.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/render/draw.cc b/src/render/draw.cc
index 8db77c1..dadd0fa 100644
--- a/src/render/draw.cc
+++ b/src/render/draw.cc
@@ -72,7 +72,13 @@ void draw_sphere(math::Color const & color, float radius)
void draw_entity_sphere(core::Entity *entity)
{
+ if (entity->type() == core::Entity::Globe) {
+ gl::disable(GL_LIGHT0);
+ }
draw_sphere(entity->color(), entity->radius());
+ if (entity->type() == core::Entity::Globe) {
+ gl::enable(GL_LIGHT0);
+ }
}
void draw_entity_cube(core::Entity *entity)