Changeset 2264 for GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderingRuns/OgrePMWeightComputeRenderingRun.h
- Timestamp:
- 03/19/07 13:02:58 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderingRuns/OgrePMWeightComputeRenderingRun.h
r2200 r2264 13 13 14 14 /** 15 @brief ColorCubeMapRenderingRun used in an OGRE environment. 15 @brief Weight computing rendering run. 16 17 This run is used in the pathmap technique. 18 It creates a texture for a light source that stores the weights that should be used for each cluster of entry points. 16 19 */ 17 20 class OgrePMWeightComputeRenderingRun : public OgreRenderingRun … … 22 25 @brief Constructor. 23 26 24 27 @param name the name of the weight texture to be created 28 @param LightName the name of the light source to use 25 29 */ 26 30 OgrePMWeightComputeRenderingRun(String name, String LightName); 27 31 /** 28 @brief returns the name of the camera depthtexture32 @brief returns the name of the weight texture 29 33 */ 30 34 String getPMWeightTetureName(){return weightTexture->getName();} 35 //not used 31 36 float* getWeights(){return weights;} 32 37 33 38 protected: 34 39 /** 35 @brief pointer to the player's viewport40 @brief light view-projection matrix 36 41 */ 37 42 Matrix4 lightMatrix; 43 /** 44 @brief light view matrix 45 */ 38 46 Matrix4 lightViewMatrix; 39 47 /** … … 42 50 String name; 43 51 /** 44 @brief a pointer to the scene depthtexture that was created by this run52 @brief a pointer to the weight texture that was created by this run 45 53 */ 46 54 Texture* weightTexture; 55 /** 56 @brief A pointer to a texture that stores weights for all the entry point. 57 58 This texture will be used to determine the weights of the clusters. 59 */ 47 60 Texture* allWeightsTexture; 48 61 /** 62 @brief A pointer to the light source. 63 */ 49 64 Light* light; 50 65 //not used 51 66 float* weights; 52 53 67 //inherited 54 68 void updateFrame(unsigned long frameNum); 55 69 /** 70 @brief Creates the weight texture. 71 72 It also creates the texture storing all weights. @see allWeightsTexture 73 */ 56 74 inline void createWeightMap(); 57 75 };
Note: See TracChangeset
for help on using the changeset viewer.