- Timestamp:
- 09/12/06 20:49:30 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgreCausticCubeMapRenderingRun.cpp
r1055 r1351 13 13 unsigned char photonMapTexId, 14 14 bool updateAllFace, 15 float attenuation) 15 float attenuation, 16 bool useTriangles) 16 17 :CausticCubeMapRenderingRun(startFrame, updateInterval, resolution, updateAllFace) 17 18 , OgreRenderingRun(startFrame, updateInterval) … … 19 20 { 20 21 this->attenuation = attenuation; 22 this->useTriangles = useTriangles; 21 23 this->sharedRuns = sharedRuns; 22 24 this->name = name; … … 64 66 String photonMapName = ((OgrePhotonMapRenderingRun*) run->asOgreRenderingRun())->getPhotonMapTextureName(); 65 67 TexturePtr tex = TextureManager::getSingleton().getByName(photonMapName); 66 renderPixelSprites(materialName, rt, tex->getWidth(), tex->getHeight()); 68 69 if(!useTriangles) 70 renderPixelSprites(materialName, rt, tex->getWidth(), tex->getHeight()); 71 else 72 renderFullscreenGrid(materialName, rt, tex->getWidth(), tex->getHeight()); 67 73 68 74 //rt->writeContentsToFile("caucube" + this->name + StringConverter::toString(facenum) + ".dds");
Note: See TracChangeset
for help on using the changeset viewer.