Ignore:
Timestamp:
09/12/06 20:49:30 (18 years ago)
Author:
szirmay
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderTechniques/OgreCausticCasterRenderTechnique.cpp

    r1055 r1351  
    1616                                                                                                                                bool useDistance, 
    1717                                                                                                                                float attenuation, 
     18                                                                                                                                bool useTriangles, 
    1819                                                                                                                                Pass* pass, 
    1920                                                                                                                                OgreRenderable* parentRenderable, 
     
    2425{        
    2526        this->attenuation = attenuation; 
     27        this->useTriangles = useTriangles; 
    2628        this->photonMapMaterialName = photonMapMaterialName; 
    2729         
     
    106108                                                                                                photonMapTexID, 
    107109                                                                                                updateAllFace, 
    108                                                                                                 attenuation 
     110                                                                                                attenuation, 
     111                                                                                                useTriangles 
    109112                                                                                                ); 
    110113 
     
    194197                OgreCausticCasterRenderTechniqueFactory* f = (OgreCausticCasterRenderTechniqueFactory*) factory; 
    195198                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); 
    196205        } 
    197206} 
     
    216225        this->attributeParsers.insert(AttribParserList::value_type("update_all_face", (ILLUM_ATTRIBUTE_PARSER) parseUpdateAllFace)); 
    217226        this->attributeParsers.insert(AttribParserList::value_type("attenuation", (ILLUM_ATTRIBUTE_PARSER) parseAttenuation)); 
     227        this->attributeParsers.insert(AttribParserList::value_type("use_triangles", (ILLUM_ATTRIBUTE_PARSER) parseUseTriangles)); 
    218228         
    219229} 
     
    236246        useDistance = true; 
    237247        updateAllFace = false; 
     248        useTriangles = false; 
    238249 
    239250        parseParams(params); 
     
    250261                                                                                                useDistance, 
    251262                                                                                                attenuation, 
     263                                                                                                useTriangles, 
    252264                                                                                                pass, 
    253265                                                                                                parentRenderable, 
Note: See TracChangeset for help on using the changeset viewer.