diff Renderer/Test/universe.cc @ 854:293fcceaac36 draft

may be need ppeManager
author yutaka@localhost.localdomain
date Wed, 09 Jun 2010 23:04:09 +0900
parents 06302c1dc87d
children 641451e6a95b
line wrap: on
line diff
--- a/Renderer/Test/universe.cc	Wed Jun 09 10:33:24 2010 +0900
+++ b/Renderer/Test/universe.cc	Wed Jun 09 23:04:09 2010 +0900
@@ -47,6 +47,10 @@
     SceneGraphPtr moon;
 
     sgroot->createFromXMLfile( "xml_file/universe.xml");
+    sgroot->OnLightSysSwitch();
+    SceneGraphPtr light = sgroot->getLight(0); 
+    sgroot->OnLightSwitch(0);
+    light->xyz[2] -= 10;
 
     // SGList.h にある SceneGraph ID から SceneGraph を生成する
     earth = sgroot->createSceneGraph("Earth");