Changeset 2185
- Timestamp:
- 03/02/07 19:06:44 (18 years ago)
- Location:
- GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/OgreIlluminationManager.h
r1711 r2185 17 17 #include "OgreIllumVolumeRenderTechnique.h" 18 18 #include "OgrePhaseTextureRenderingRun.h" 19 #include "OgrePathMapRenderTechnique.h" 19 20 20 21 21 22 using namespace Ogre; 22 23 24 struct PathMapClusters 25 { 26 unsigned int count; 27 unsigned int* clusters; 28 String pathMapTextureFilename; 29 unsigned int pathMapResolution; 30 }; 31 32 struct PathMapEntryPoint 33 { 34 Vector3 position; 35 Vector3 normal; 36 }; 23 37 /** 24 38 @brief Implementation of IlluminationManager in an OGRE environment. … … 77 91 unsigned int phaseTextureSize; 78 92 std::map<RenderingRunType,float> maxRads; 93 std::map<String, PathMapClusters> pathMapClusters; 94 std::vector<PathMapEntryPoint> pathMapEntryPoints; 95 std::vector<unsigned int> pathMapClusterLengths; 79 96 /** 80 97 @brief The camera attached to the player. … … 317 334 void setBlurShadowMap(bool use){blurSM = use;} 318 335 void setShadowMapMaterialName(String name){shadowMapMaterialName = name;} 336 337 void addPathMapClusters(String subEntityName, PathMapClusters clusters) 338 { 339 this->pathMapClusters[subEntityName] = clusters; 340 } 341 PathMapClusters* getPathMapClusters(String subEntityName) 342 { 343 return &pathMapClusters[subEntityName]; 344 } 345 void addPathMapEntryPoint(PathMapEntryPoint p) 346 { 347 this->pathMapEntryPoints.push_back(p); 348 } 349 void addPathMapClusterLength(unsigned int l) 350 { 351 this->pathMapClusterLengths.push_back(l); 352 } 319 353 }; 320 354 -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/scripts/OgreIllumModule.7.10.vcproj
r2174 r2185 171 171 </File> 172 172 <File 173 RelativePath="..\src\RenderTechniques\OgrePathMapRenderTechnique.cpp"> 174 </File> 175 <File 173 176 RelativePath="..\src\RenderTechniques\OgreSBBRenderTechnique.cpp"> 174 177 </File> … … 268 271 </File> 269 272 <File 273 RelativePath="..\include\RenderTechniques\OgrePathMapRenderTechnique.h"> 274 </File> 275 <File 270 276 RelativePath="..\include\RenderTechniques\OgreSBBRenderTechnique.h"> 271 277 </File> -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/OgreIlluminationManager.cpp
r2180 r2185 113 113 OgreIllumVolumeRenderTechniqueFactory* illumVolume = new OgreIllumVolumeRenderTechniqueFactory(); 114 114 addRenderTechniqueFactory(illumVolume); 115 OgrePathMapRenderTechniqueFactory* pathmap = new OgrePathMapRenderTechniqueFactory(); 116 addRenderTechniqueFactory(pathmap); 115 117 } 116 118
Note: See TracChangeset
for help on using the changeset viewer.