- Timestamp:
- 06/05/07 02:00:52 (18 years ago)
- Location:
- GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderTechniques
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderTechniques/OgreDepthShadowReceiverRenderTechnique.cpp
r2397 r2406 101 101 for(unsigned int i = 0; i < maxlights; i++) 102 102 { 103 while(lights.size() != l && !lights.at(l)->getCastShadows()) 104 l++; 105 106 if(lights.size() > l) 103 int lightcount = lights.size(); 104 while( lightcount > l) 105 { 106 if(!lights.at(l)->getCastShadows()) 107 l++; 108 else 109 break; 110 } 111 112 if(lightcount > l) 107 113 { 108 114 -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderTechniques/OgrePathMapRenderTechnique.cpp
r2397 r2406 52 52 GpuProgramParameters* Fparams = passToSet->getFragmentProgramParameters().getPointer(); 53 53 54 int prmxres = clusters->pathMapResolution *clusters->count;55 int prmyres = clusters->pathMapResolution;54 int prmxres = this->clusters->pathMapResolution * this->clusters->count; 55 int prmyres = this->clusters->pathMapResolution; 56 56 while(prmxres > 4096) 57 57 { … … 59 59 prmyres *= 2; 60 60 } 61 int prmnt[2] = {prmxres / clusters->pathMapResolution, prmyres /clusters->pathMapResolution};61 int prmnt[2] = {prmxres / this->clusters->pathMapResolution, prmyres / this->clusters->pathMapResolution}; 62 62 63 63 float halfPixel[2] = {0.5 / prmxres, 0.5 / prmyres}; … … 80 80 st1 = passToSet->createTextureUnitState(); 81 81 st1->setTextureFiltering(TFO_BILINEAR); 82 st1->setTextureAddressingMode(TextureUnitState::TAM_ CLAMP);82 st1->setTextureAddressingMode(TextureUnitState::TAM_BORDER); 83 83 st1->setTextureBorderColour(ColourValue::Green); 84 84
Note: See TracChangeset
for help on using the changeset viewer.