Changeset 1351 for GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderTechniques/OgreCausticCasterRenderTechnique.cpp
- Timestamp:
- 09/12/06 20:49:30 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderTechniques/OgreCausticCasterRenderTechnique.cpp
r1055 r1351 16 16 bool useDistance, 17 17 float attenuation, 18 bool useTriangles, 18 19 Pass* pass, 19 20 OgreRenderable* parentRenderable, … … 24 25 { 25 26 this->attenuation = attenuation; 27 this->useTriangles = useTriangles; 26 28 this->photonMapMaterialName = photonMapMaterialName; 27 29 … … 106 108 photonMapTexID, 107 109 updateAllFace, 108 attenuation 110 attenuation, 111 useTriangles 109 112 ); 110 113 … … 194 197 OgreCausticCasterRenderTechniqueFactory* f = (OgreCausticCasterRenderTechniqueFactory*) factory; 195 198 f->attenuation = StringConverter::parseReal(params); 199 } 200 201 void parseUseTriangles(String& params, RenderTechniqueFactory* factory) 202 { 203 OgreCausticCasterRenderTechniqueFactory* f = (OgreCausticCasterRenderTechniqueFactory*) factory; 204 f->useTriangles = StringConverter::parseBool(params); 196 205 } 197 206 } … … 216 225 this->attributeParsers.insert(AttribParserList::value_type("update_all_face", (ILLUM_ATTRIBUTE_PARSER) parseUpdateAllFace)); 217 226 this->attributeParsers.insert(AttribParserList::value_type("attenuation", (ILLUM_ATTRIBUTE_PARSER) parseAttenuation)); 227 this->attributeParsers.insert(AttribParserList::value_type("use_triangles", (ILLUM_ATTRIBUTE_PARSER) parseUseTriangles)); 218 228 219 229 } … … 236 246 useDistance = true; 237 247 updateAllFace = false; 248 useTriangles = false; 238 249 239 250 parseParams(params); … … 250 261 useDistance, 251 262 attenuation, 263 useTriangles, 252 264 pass, 253 265 parentRenderable,
Note: See TracChangeset
for help on using the changeset viewer.