- Timestamp:
- 05/12/07 14:21:03 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/OgreRenderingRun.cpp
r2355 r2366 4 4 MovablePlane* OgreRenderingRun::fullScreenQuad = NULL; 5 5 Entity* OgreRenderingRun::fullScreenQuadEntity = NULL; 6 SceneNode* OgreRenderingRun::fullScreenQuadNode = NULL;7 6 BillboardSet* OgreRenderingRun::pixelSprites = NULL; 8 7 Entity* OgreRenderingRun::fullscreenGrid = NULL; … … 21 20 this->materialName = materialName; 22 21 this->visibleObjects = visibleObjects; 22 triggerName = trigger; 23 23 } 24 24 … … 33 33 if(triggerName != "")//we have a trigger here 34 34 { 35 String triggeredMaterial = 36 ((OgreTechniqueGroup*)rend->getRenderTechniqueGroup()) 37 ->getMaterialNameForTrigger(triggerName); 38 if(triggeredMaterial != "")//a trigger is associated 39 materialToSet = triggeredMaterial; 35 OgreTechniqueGroup* tg = (OgreTechniqueGroup*)rend->getRenderTechniqueGroup(); 36 if(tg) 37 { 38 String triggeredMaterial = tg->getMaterialNameForTrigger(triggerName); 39 if(triggeredMaterial != "")//a trigger is associated 40 materialToSet = triggeredMaterial; 41 } 40 42 } 41 43 rend->setMaterialName(materialToSet);
Note: See TracChangeset
for help on using the changeset viewer.