Mercurial > hg > Game > Cerium
diff Renderer/Test/universe.cc @ 1292:90efd2aac2cb draft
add matrix test and debug light vector
author | Yutaka_Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 02 Dec 2011 12:27:51 +0900 |
parents | ec6b55aed337 |
children | e51127dbd63c |
line wrap: on
line diff
--- a/Renderer/Test/universe.cc Fri Nov 25 18:43:21 2011 +0900 +++ b/Renderer/Test/universe.cc Fri Dec 02 12:27:51 2011 +0900 @@ -50,8 +50,10 @@ sgroot->createFromXMLfile( "xml_file/cube.xml"); sgroot->OnLightSysSwitch(); SceneGraphPtr light = sgroot->getLight(0); - sgroot->OnLightSwitch(1); - light->xyz[2] -= 10; + sgroot->OnLightSwitch(0); + light->xyz[0] = screen_w; + light->xyz[1] = screen_h; + light->xyz[2] = 100; // SceneGraph ID から SceneGraph を生成する earth = sgroot->createSceneGraph("Earth");