- Timestamp:
- 06/05/07 02:00:52 (18 years ago)
- Location:
- GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgreDepthShadowMapRenderingRun.cpp
r2379 r2406 52 52 v->setBackgroundColour(ColourValue::White); 53 53 v->setOverlaysEnabled(false); 54 v->setSkiesEnabled(false); 54 55 rt->setAutoUpdated(false); 55 56 … … 77 78 bool OgreDepthShadowMapRenderingRun::renderableQueued (Renderable *rend, uint8 groupID, ushort priority, Technique **ppTech) 78 79 { 80 if((*ppTech)->isTransparent()) 81 return false; 82 83 String materialToSet = materialName; 79 84 OgreTechniqueGroup* TG = (OgreTechniqueGroup*) rend->getRenderTechniqueGroup(); 80 85 if(TG) 81 86 { 82 String materialToSet = materialName;83 87 String triggeredMaterial = TG->getMaterialNameForTrigger(triggerName); 84 88 if(triggeredMaterial != "")//a trigger is associated 85 89 materialToSet = triggeredMaterial; 86 Technique* techn = ((Material*)MaterialManager::getSingleton().getByName( materialToSet ).getPointer())->getTechnique(0);87 *ppTech = techn;88 90 } 91 Technique* techn = ((Material*)MaterialManager::getSingleton().getByName( materialToSet ).getPointer())->getTechnique(0); 92 *ppTech = techn; 89 93 return true; 90 94 } -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgreSceneCameraDepthRenderingRun.cpp
r2379 r2406 38 38 Viewport* v = rt->addViewport(playerCamera); 39 39 v->setOverlaysEnabled(false); 40 v->setSkiesEnabled(false); 40 41 rt->setAutoUpdated(false); 41 42 } … … 46 47 return false; 47 48 49 String materialToSet = String("GTP/Basic/CameraDepth"); 48 50 OgreTechniqueGroup* TG = (OgreTechniqueGroup*) rend->getRenderTechniqueGroup(); 49 51 if(TG) 50 52 { 51 String materialToSet = String("GTP/Basic/CameraDepth");52 53 String triggeredMaterial = TG->getMaterialNameForTrigger("ILLUM_TRIGGER_CAMERADEPTH"); 53 54 if(triggeredMaterial != "")//a trigger is associated 54 55 materialToSet = triggeredMaterial; 55 Technique* techn = ((Material*)MaterialManager::getSingleton().getByName( materialToSet ).getPointer())->getTechnique(0);56 *ppTech = techn;57 56 } 57 58 Technique* techn = ((Material*)MaterialManager::getSingleton().getByName( materialToSet ).getPointer())->getTechnique(0); 59 *ppTech = techn; 58 60 return true; 59 61 }
Note: See TracChangeset
for help on using the changeset viewer.