Revision: 1448
          http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=1448&view=rev
Author:   rorthomas
Date:     2010-07-14 23:13:42 +0000 (Wed, 14 Jul 2010)

Log Message:
-----------
fixed MainLight issue, forgot to actually create the light ... :/

Modified Paths:
--------------
    trunk/source/main/RoRFrameListener.cpp

Modified: trunk/source/main/RoRFrameListener.cpp
===================================================================
--- trunk/source/main/RoRFrameListener.cpp      2010-07-14 17:27:07 UTC (rev 
1447)
+++ trunk/source/main/RoRFrameListener.cpp      2010-07-14 23:13:42 UTC (rev 
1448)
@@ -4806,11 +4806,20 @@
 #ifdef USE_CAELUM
        bool useCaelum = SETTINGS.getSetting("Sky effects")=="Caelum (best 
looking, slower)";
        if(!useCaelum)
-               mainLight = mSceneMgr->getLight("MainLight");
-       else
+       {
+               mainLight = mSceneMgr->createLight("MainLight");
+               //directional light for shadow
+               mainLight->setType(Light::LT_DIRECTIONAL);
+               mainLight->setDirection(0.785, -0.423, 0.453);
+       } else
+       {
                mainLight = SkyManager::getSingleton().getMainLight();
+       }
 #else // USE_CAELUM
-       mainLight = mSceneMgr->getLight("MainLight");
+       mainLight = mSceneMgr->createLight("MainLight");
+       //directional light for shadow
+       mainLight->setType(Light::LT_DIRECTIONAL);
+       mainLight->setDirection(0.785, -0.423, 0.453);
 #endif // USE_CAELUM
 
 #ifdef USE_CAELUM


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Rigsofrods-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel

Reply via email to