- Timestamp:
- 10/27/06 17:37:24 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderTechniques/OgreCausticCasterRenderTechnique.cpp
r1351 r1688 17 17 float attenuation, 18 18 bool useTriangles, 19 bool blurCauCubeMap, 19 20 Pass* pass, 20 21 OgreRenderable* parentRenderable, … … 27 28 this->useTriangles = useTriangles; 28 29 this->photonMapMaterialName = photonMapMaterialName; 30 this->blurCauCubeMap = blurCauCubeMap; 29 31 30 32 String newMaterialName = causticMapMaterialName + parentRenderable->getName() + "_clone"; … … 109 111 updateAllFace, 110 112 attenuation, 111 useTriangles 113 useTriangles, 114 blurCauCubeMap 112 115 ); 113 116 … … 130 133 } 131 134 132 String& OgreCausticCasterRenderTechnique::getCausticCubeMapName()135 const String& OgreCausticCasterRenderTechnique::getCausticCubeMapName() 133 136 { 134 137 return ((OgreCausticCubeMapRenderingRun*) sharedRuns->getRun(ILLUMRUN_CAUSTIC_CUBEMAP)->asOgreRenderingRun())-> … … 203 206 OgreCausticCasterRenderTechniqueFactory* f = (OgreCausticCasterRenderTechniqueFactory*) factory; 204 207 f->useTriangles = StringConverter::parseBool(params); 208 } 209 210 void parseBlurCauCubeMap(String& params, RenderTechniqueFactory* factory) 211 { 212 OgreCausticCasterRenderTechniqueFactory* f = (OgreCausticCasterRenderTechniqueFactory*) factory; 213 f->blurCauCubeMap = StringConverter::parseBool(params); 205 214 } 206 215 } … … 226 235 this->attributeParsers.insert(AttribParserList::value_type("attenuation", (ILLUM_ATTRIBUTE_PARSER) parseAttenuation)); 227 236 this->attributeParsers.insert(AttribParserList::value_type("use_triangles", (ILLUM_ATTRIBUTE_PARSER) parseUseTriangles)); 237 this->attributeParsers.insert(AttribParserList::value_type("blur_caustic_cubemap", (ILLUM_ATTRIBUTE_PARSER) parseBlurCauCubeMap)); 228 238 229 239 } … … 247 257 updateAllFace = false; 248 258 useTriangles = false; 259 blurCauCubeMap = false; 249 260 250 261 parseParams(params); … … 262 273 attenuation, 263 274 useTriangles, 275 blurCauCubeMap, 264 276 pass, 265 277 parentRenderable,
Note: See TracChangeset
for help on using the changeset viewer.