Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)