From 037a961280c2715f8decaa527ef29ae564d5377d Mon Sep 17 00:00:00 2001 From: frohlich Date: Sun, 3 Dec 2006 16:48:25 +0000 Subject: [PATCH] Modified Files: renderer.cxx: Put light information into the update visitor --- src/Main/renderer.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Main/renderer.cxx b/src/Main/renderer.cxx index f4cfdf84e..af067d7f9 100644 --- a/src/Main/renderer.cxx +++ b/src/Main/renderer.cxx @@ -794,6 +794,9 @@ FGRenderer::update( bool refresh_camera_settings ) { mUpdateVisitor->setViewData(current__view->getViewPosition(), current__view->getViewOrientation()); mUpdateVisitor->setSceneryCenter(globals->get_scenery()->get_center()); + SGVec3f direction(l->sun_vec()[0], l->sun_vec()[1], l->sun_vec()[2]); + mUpdateVisitor->setLight(direction, l->scene_ambient(), + l->scene_diffuse(), l->scene_specular()); mUpdateVisitor->setVisibility(actual_visibility); sceneView->update(); sceneView->cull();