Changeset 2460 for GTP/trunk/Lib/Illum
- Timestamp:
- 06/24/07 11:00:45 (18 years ago)
- Location:
- GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderTechniques/OgreDepthShadowReceiverRenderTechnique.cpp
r2437 r2460 112 112 while( lightcount > l) 113 113 { 114 if(!lights.at(l)->getCastShadows())114 if(!lights.at(l)->getCastShadows() || !lights.at(l)->isAttached()) 115 115 l++; 116 116 else -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderTechniques/OgrePathMapRenderTechnique.cpp
r2406 r2460 146 146 sm->_populateLightList(OgreIlluminationManager::getSingleton().getMainCamera()->getPosition(), 1000, lights); 147 147 148 for(int i = 0 ; i < 5 && i < lights.size(); i++) 149 { 150 String lightName = lights.at(i)->getName(); 151 OgreIlluminationManager::getSingleton().createPerLightRun(lightName, ILLUMRUN_PM_WEIGHTMAP); 152 OgreIlluminationManager::getSingleton().updatePerLightRun(lightName, ILLUMRUN_PM_WEIGHTMAP, frameNum); 148 int found = 0; 149 for(int i = 0 ; found < 5 && i < lights.size(); i++) 150 { 151 if(lights.at(i)->isAttached()) 152 { 153 found ++; 154 String lightName = lights.at(i)->getName(); 155 OgreIlluminationManager::getSingleton().createPerLightRun(lightName, ILLUMRUN_PM_WEIGHTMAP); 156 OgreIlluminationManager::getSingleton().updatePerLightRun(lightName, ILLUMRUN_PM_WEIGHTMAP, frameNum); 157 } 153 158 } 154 159 OgrePMWeightComputeRenderingRun::sumWeights(frameNum); -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgreDepthShadowMapRenderingRun.cpp
r2410 r2460 84 84 return false; 85 85 86 if(!rend->getCastsShadows()) 87 return false; 88 86 89 String materialToSet = materialName; 87 90 OgreTechniqueGroup* TG = (OgreTechniqueGroup*) rend->getRenderTechniqueGroup();
Note: See TracChangeset
for help on using the changeset viewer.