Changeset 2333 for GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgrePhotonMapRenderingRun.cpp
- Timestamp:
- 04/24/07 14:04:48 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgrePhotonMapRenderingRun.cpp
r2321 r2333 100 100 if(light->getType() == Light::LT_DIRECTIONAL) 101 101 { 102 Vector3 dir = light->getD irection();102 Vector3 dir = light->getDerivedDirection(); 103 103 photonMapCamera->setDirection( dir ); 104 104 Real r = sharedRuns->getRootBoundingSphere(ILLUMRUN_PHOTONMAP).getRadius(); … … 113 113 else 114 114 { 115 Vector3 pos = light->get ParentSceneNode()->getPosition();115 Vector3 pos = light->getDerivedPosition(); 116 116 Vector3 dir = sharedRuns->getRootPosition(ILLUMRUN_PHOTONMAP) - pos; 117 117 Real r = sharedRuns->getRootBoundingSphere(ILLUMRUN_PHOTONMAP).getRadius();
Note: See TracChangeset
for help on using the changeset viewer.