From 1b8c92e759adf6605803d86931d349a06f963554 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 24 May 2008 12:16:47 +0000 Subject: Planets don't get camera light --- src/render/draw.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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) -- cgit v1.2.3