Changeset 2185 for GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include
- Timestamp:
- 03/02/07 19:06:44 (18 years ago)
- Location:
- GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include
- Files:
-
- 1 added
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.