Changeset 1055 for GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderTechniques/OgreCausticCasterRenderTechnique.cpp
- Timestamp:
- 06/26/06 09:52:08 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderTechniques/OgreCausticCasterRenderTechnique.cpp
r949 r1055 15 15 bool updateAllFace, 16 16 bool useDistance, 17 float attenuation, 17 18 Pass* pass, 18 19 OgreRenderable* parentRenderable, … … 22 23 RenderTechnique( parentRenderable, parentTechniqueGroup) 23 24 { 25 this->attenuation = attenuation; 24 26 this->photonMapMaterialName = photonMapMaterialName; 25 27 … … 103 105 causticMapMaterialName, 104 106 photonMapTexID, 105 updateAllFace 107 updateAllFace, 108 attenuation 106 109 ); 107 110 … … 185 188 OgreCausticCasterRenderTechniqueFactory* f = (OgreCausticCasterRenderTechniqueFactory*) factory; 186 189 f->causticMapMaterialName = params; 190 } 191 192 void parseAttenuation(String& params, RenderTechniqueFactory* factory) 193 { 194 OgreCausticCasterRenderTechniqueFactory* f = (OgreCausticCasterRenderTechniqueFactory*) factory; 195 f->attenuation = StringConverter::parseReal(params); 187 196 } 188 197 } … … 206 215 this->attributeParsers.insert(AttribParserList::value_type("distance_impostor", (ILLUM_ATTRIBUTE_PARSER) parseUseDistance)); 207 216 this->attributeParsers.insert(AttribParserList::value_type("update_all_face", (ILLUM_ATTRIBUTE_PARSER) parseUpdateAllFace)); 208 217 this->attributeParsers.insert(AttribParserList::value_type("attenuation", (ILLUM_ATTRIBUTE_PARSER) parseAttenuation)); 218 209 219 } 210 220 … … 216 226 { 217 227 //reset parameters 228 attenuation = 1.0; 218 229 startFrame = 1; 219 230 photonMapUpdateInterval = 1; … … 237 248 photonMapTexID, 238 249 updateAllFace, 239 useDistance, 250 useDistance, 251 attenuation, 240 252 pass, 241 253 parentRenderable,
Note: See TracChangeset
for help on using the changeset viewer.