Changeset 2249


Ignore:
Timestamp:
03/13/07 16:43:00 (17 years ago)
Author:
szirmay
Message:
 
Location:
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src
Files:
2 edited

Legend:

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

    r2218 r2249  
    7474        st->setTextureAddressingMode(TextureUnitState::TAM_BORDER); 
    7575        st->setTextureBorderColour(ColourValue::Blue); 
     76 
     77        st = newpass->createTextureUnitState();          
     78        st->setTextureFiltering(TFO_BILINEAR); 
     79        st->setTextureAddressingMode(TextureUnitState::TAM_WRAP); 
     80        st->setTextureBorderColour(ColourValue::Blue); 
     81        st->setTextureName(pass->getTextureUnitState(0)->getTextureName()); 
    7682         
    77         newpass->setSceneBlending(SBT_MODULATE); 
     83        //newpass->setSceneBlending(SBT_MODULATE); 
     84        newpass->setSceneBlending(SBT_ADD); 
    7885        //newpass->setSceneBlending(SBF_ONE, SBF_ZERO); 
    7986        newpass->setDepthBias(1); 
  • GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgrePMWeightComputeRenderingRun.cpp

    r2218 r2249  
    9090                        Fparams->setNamedConstant("lightPos", lightPos); 
    9191                        Fparams->setNamedConstant("lightDir", lightDir); 
     92                        Fparams->setNamedConstant("lightPower", light->getPowerScale()); 
    9293                        Fparams->setNamedConstant("lightViewProj", SMrun->getLightViewProjMatrix()); 
    9394                        Fparams->setNamedConstant("lightFarPlane", SMrun->getLightFarPlane()); 
Note: See TracChangeset for help on using the changeset viewer.