Changeset 2333 for GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include
- Timestamp:
- 04/24/07 14:04:48 (18 years ago)
- Location:
- GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/OgreIlluminationManager.h
r2320 r2333 130 130 @brief Size of the shadow maps. 131 131 */ 132 unsigned int shadowMapSize; 132 unsigned int shadowMapSizePoint; 133 unsigned int shadowMapSizeSpot; 134 unsigned int shadowMapSizeDirectional; 133 135 /** 134 136 @brief Size of area lights for soft shadows. … … 138 140 @brief Sets if light space perspective shadow mapping should be used. 139 141 */ 140 bool useLISPSM; 142 bool useLISPSMPoint; 143 bool useLISPSMSpot; 144 bool useLISPSMDirectional; 141 145 /** 142 146 @brief Sets if the shadow maps should be blurred. … … 144 148 Used in variance shadow mapping. 145 149 */ 146 bool blurSM; 150 bool blurSMPoint; 151 bool blurSMSpot; 152 bool blurSMDirectional; 147 153 /** 148 154 @brief Sets if shadow maps should be focused. 149 155 */ 150 bool focusingSM; 156 bool focusingSMPoint; 157 bool focusingSMSpot; 158 bool focusingSMDirectional; 151 159 /** 152 160 @brief The material name that should be used during rendering the shadow maps. … … 166 174 - directional lights : GTP/Basic/Depth or GTP/Basic/DepthCCW 167 175 */ 168 String shadowMapMaterialName; 176 String shadowMapMaterialNamePoint; 177 String shadowMapMaterialNameSpot; 178 String shadowMapMaterialNameDirectional; 169 179 /** 170 180 @brief Size of the phase texture. … … 241 251 std::vector<UpdateListener*> updateListeners; 242 252 253 bool joinRuns; 254 243 255 public: 256 257 void joinSharedRuns(bool join){joinRuns = join;} 244 258 /** 245 259 @brief Registers an UpdateListener instance. @see UpdateListener … … 296 310 @see shadowMapSize 297 311 */ 298 void setShadowMapSize(unsigned int size){shadowMapSize = size;} 312 void setShadowMapSize(unsigned int size) 313 { 314 shadowMapSizeDirectional = size; 315 shadowMapSizePoint = size; 316 shadowMapSizeSpot = size; 317 } 318 void setShadowMapSize(Light::LightTypes type, unsigned int size) 319 { 320 switch(type) 321 { 322 case Light::LT_DIRECTIONAL: 323 shadowMapSizeDirectional = size;break; 324 case Light::LT_POINT: 325 shadowMapSizePoint = size;break; 326 case Light::LT_SPOTLIGHT: 327 shadowMapSizeSpot = size;break; 328 } 329 } 299 330 /** 300 331 @brief Returns the one and only OgreIlluminationManager instance. … … 454 485 @see useLISPSM 455 486 */ 456 bool getUseLISPSM(){return useLISPSM;} 487 bool getUseLISPSM(Light::LightTypes type) 488 { 489 switch(type) 490 { 491 case Light::LT_DIRECTIONAL: 492 return useLISPSMDirectional; 493 case Light::LT_POINT: 494 return useLISPSMPoint; 495 case Light::LT_SPOTLIGHT: 496 return useLISPSMSpot; 497 } 498 } 457 499 /** 458 500 @see focusingSM 459 501 */ 460 bool getFocusingShadowMap(){return focusingSM;} 502 bool getFocusingShadowMap(Light::LightTypes type) 503 { 504 switch(type) 505 { 506 case Light::LT_DIRECTIONAL: 507 return focusingSMDirectional; 508 case Light::LT_POINT: 509 return focusingSMPoint; 510 case Light::LT_SPOTLIGHT: 511 return focusingSMSpot; 512 } 513 } 461 514 /** 462 515 @see blurSM 463 516 */ 464 bool getBlurShadowMap(){return blurSM;} 517 bool getBlurShadowMap(Light::LightTypes type) 518 { 519 switch(type) 520 { 521 case Light::LT_DIRECTIONAL: 522 return blurSMDirectional; 523 case Light::LT_POINT: 524 return blurSMPoint; 525 case Light::LT_SPOTLIGHT: 526 return blurSMSpot; 527 } 528 } 465 529 /** 466 530 @see useLISPSM 467 531 */ 468 void setUseLISPSM(bool use){useLISPSM = use;} 532 void setUseLISPSM(bool use) 533 { 534 useLISPSMDirectional = use; 535 useLISPSMPoint = use; 536 useLISPSMSpot = use; 537 } 538 void setUseLISPSM(Light::LightTypes type, bool use) 539 { 540 switch(type) 541 { 542 case Light::LT_DIRECTIONAL: 543 useLISPSMDirectional = use;break; 544 case Light::LT_POINT: 545 useLISPSMPoint = use;break; 546 case Light::LT_SPOTLIGHT: 547 useLISPSMSpot = use;break; 548 } 549 } 469 550 /** 470 551 @see focusingSM 471 552 */ 472 void setFocusingSM(bool use){focusingSM = use;} 553 void setFocusingSM(bool use) 554 { 555 focusingSMDirectional = use; 556 focusingSMPoint = use; 557 focusingSMSpot = use; 558 } 559 void setFocusingSM(Light::LightTypes type, bool use) 560 { 561 switch(type) 562 { 563 case Light::LT_DIRECTIONAL: 564 focusingSMDirectional = use;break; 565 case Light::LT_POINT: 566 focusingSMPoint = use;break; 567 case Light::LT_SPOTLIGHT: 568 focusingSMSpot = use;break; 569 } 570 } 473 571 /** 474 572 @see blurSM 475 573 */ 476 void setBlurShadowMap(bool use){blurSM = use;} 574 void setBlurShadowMap(bool use) 575 { 576 blurSMDirectional = use; 577 blurSMPoint = use; 578 blurSMSpot = use; 579 } 580 void setBlurShadowMap(Light::LightTypes type, bool use) 581 { 582 switch(type) 583 { 584 case Light::LT_DIRECTIONAL: 585 blurSMDirectional = use;break; 586 case Light::LT_POINT: 587 blurSMPoint = use;break; 588 case Light::LT_SPOTLIGHT: 589 blurSMSpot = use;break; 590 } 591 } 477 592 /** 478 593 @see shadowMapMaterialName 479 594 */ 480 void setShadowMapMaterialName(String name){shadowMapMaterialName = name;} 595 void setShadowMapMaterialName(String name) 596 { 597 shadowMapMaterialNameDirectional = name; 598 shadowMapMaterialNamePoint = name; 599 shadowMapMaterialNameSpot = name; 600 } 601 void setShadowMapMaterialName(Light::LightTypes type, String name) 602 { 603 switch(type) 604 { 605 case Light::LT_DIRECTIONAL: 606 shadowMapMaterialNameDirectional = name;break; 607 case Light::LT_POINT: 608 shadowMapMaterialNamePoint = name;break; 609 case Light::LT_SPOTLIGHT: 610 shadowMapMaterialNameSpot = name;break; 611 } 612 } 481 613 /** 482 614 @brief Registers a PathMapClusters structure for a given subentity. -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/OgreRenderingRun.h
r2320 r2333 22 22 :RenderingRun(startFrame, updateInterval) 23 23 { 24 pixelSprites = 0; 25 fullscreenGrid = 0; 24 26 25 } 27 26 … … 69 68 @see renderPixelSprites 70 69 */ 71 BillboardSet* pixelSprites;70 static BillboardSet* pixelSprites; 72 71 /** 73 72 @brief Entity used in fullscreen grid rendering … … 75 74 @see renderPixelGrid 76 75 */ 77 Entity* fullscreenGrid;76 static Entity* fullscreenGrid; 78 77 /** 79 78 @brief unique name of the SpriteSet used in pixel sprite rendering … … 81 80 @see renderPixelSprites 82 81 */ 83 String spriteSetName;82 static String spriteSetName; 84 83 /** 85 84 @brief Returns a direction for a cubemap face id. … … 147 146 @param target the RenderTarget the quad should be rendered on 148 147 */ 149 void renderFullscreenQuad(String materialName, RenderTarget* target);148 static void renderFullscreenQuad(String materialName, RenderTarget* target); 150 149 /** 151 150 @brief Renderes sprites to pixels of the screen on a given RendderTarget with a given material. … … 161 160 @param height the desired resolution height of the sprites 162 161 */ 163 void renderPixelSprites(String& materialName, RenderTarget* rt, int width, int height);162 static void renderPixelSprites(String& materialName, RenderTarget* rt, int width, int height); 164 163 /** 165 164 @brief Renders a grid onto the screen. … … 169 168 @param height the desired vertical resolution of the grid 170 169 */ 171 void renderFullscreenGrid(String& materialName, RenderTarget* rt, int width, int height);170 static void renderFullscreenGrid(String& materialName, RenderTarget* rt, int width, int height); 172 171 }; -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderingRuns/OgrePMWeightComputeRenderingRun.h
r2320 r2333 35 35 @brief returns the name of the weight texture 36 36 */ 37 String getPMWeightTetureName(){return weightTexture->getName();}37 static String getPMWeightTextureName(){return weightTexture->getName();} 38 38 //not used 39 39 float* getWeights(){return weights;} 40 40 41 41 void freeAllResources(); 42 static void sumWeights(unsigned long frameNum); 42 43 43 44 protected: … … 57 58 @brief a pointer to the weight texture that was created by this run 58 59 */ 59 Texture* weightTexture;60 static Texture* weightTexture; 60 61 /** 61 62 @brief A pointer to a texture that stores weights for all the entry point. … … 63 64 This texture will be used to determine the weights of the clusters. 64 65 */ 65 Texture* allWeightsTexture;66 static Texture* allWeightsTexture; 66 67 /** 67 68 @brief A pointer to the light source.
Note: See TracChangeset
for help on using the changeset viewer.