- Timestamp:
- 10/27/06 17:37:24 (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/OgreCausticCubeMapRenderingRun.cpp
r1351 r1688 14 14 bool updateAllFace, 15 15 float attenuation, 16 bool useTriangles) 16 bool useTriangles, 17 bool blurMap) 17 18 :CausticCubeMapRenderingRun(startFrame, updateInterval, resolution, updateAllFace) 18 19 , OgreRenderingRun(startFrame, updateInterval) … … 25 26 this->materialName = materialName; 26 27 this->photonMapTexId = photonMapTexId; 28 this->blurMap = blurMap; 27 29 28 30 spriteSetName = name + String("_pixelSpriteSet"); … … 34 36 { 35 37 causticCubemapTexture = createCubeRenderTexture(name, 38 Vector3(0,0,0), 39 resolution, 40 PF_FLOAT16_RGBA, 41 0); 42 43 if(blurMap) 44 bluredCausticCubemapTexture = createCubeRenderTexture(name + "_BLURED", 36 45 Vector3(0,0,0), 37 46 resolution, … … 72 81 renderFullscreenGrid(materialName, rt, tex->getWidth(), tex->getHeight()); 73 82 83 if(blurMap) 84 { 85 rt = bluredCausticCubemapTexture->getBuffer(facenum, 0).getPointer()->getRenderTarget(); 86 Material* mat = (Material*) MaterialManager::getSingleton().getByName("GameTools/BlurCubeFace").getPointer(); 87 mat->getTechnique(0)->getPass(0)->getTextureUnitState(0)->setTextureName(causticCubemapTexture->getName()); 88 mat->getTechnique(0)->getPass(0)->getFragmentProgramParameters()->setNamedConstant("face", facenum); 89 renderFullscreenQuad("GameTools/BlurCubeFace", rt); 90 } 91 74 92 //rt->writeContentsToFile("caucube" + this->name + StringConverter::toString(facenum) + ".dds"); 75 93 } -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgreDepthShadowMapRenderingRun.cpp
r1670 r1688 105 105 //depthMapTexture->(); 106 106 } 107 String OgreDepthShadowMapRenderingRun::getDepthMapTextureName() 107 108 const String& OgreDepthShadowMapRenderingRun::getDepthMapTextureName() 108 109 { 109 110 if(OgreIlluminationManager::getSingleton().getBlurShadowMap())
Note: See TracChangeset
for help on using the changeset viewer.