|
| PSSMShadowCameraSetup () |
|
virtual | ~PSSMShadowCameraSetup () |
|
void | calculateSplitPoints (uint splitCount, Real nearDist, Real farDist, Real lambda=0.95f) |
| Calculate a new splitting scheme. More...
|
|
Real | getOptimalAdjustFactor () const override |
| Overridden, recommended internal use only since depends on current iteration. More...
|
|
Real | getOptimalAdjustFactor (size_t splitIndex) const |
| Returns the optimal adjust factor for a given split. More...
|
|
void | getShadowCamera (const Ogre::SceneManager *sm, const Ogre::Camera *cam, const Ogre::Viewport *vp, const Ogre::Light *light, Ogre::Camera *texCam, size_t iteration) const override |
| Returns a LiSPSM shadow camera with PSSM splits base on iteration. More...
|
|
uint | getSplitCount () const |
| Get the number of splits. More...
|
|
Real | getSplitPadding () const |
| Get the padding factor to apply to the near & far distances when matching up splits to one another, to avoid 'cracks'. More...
|
|
const SplitPointList & | getSplitPoints () const |
| Returns the calculated split points. More...
|
|
void | setOptimalAdjustFactor (size_t splitIndex, Real factor) |
| Set the LiSPSM optimal adjust factor for a given split (call after configuring splits). More...
|
|
void | setSplitPadding (Real pad) |
| Set the padding factor to apply to the near & far distances when matching up splits to one another, to avoid 'cracks'. More...
|
|
void | setSplitPoints (const SplitPointList &newSplitPoints) |
| Manually configure a new splitting scheme. More...
|
|
Public Member Functions inherited from Ogre::LiSPSMShadowCameraSetup |
| LiSPSMShadowCameraSetup (Real n=0.1f, bool useSimpleNOpt=true, Degree angle=Radian(0.451f)) |
|
virtual | ~LiSPSMShadowCameraSetup () |
|
virtual Degree | getCameraLightDirectionThreshold () const |
| Sets the threshold between the camera and the light direction below which the LiSPSM projection is 'flattened', since coincident light and camera projections cause problems with the perspective skew. More...
|
|
virtual bool | getUseSimpleOptimalAdjust () const |
| Gets whether or not to use a slightly simpler version of the camera near point derivation (default is true) More...
|
|
virtual void | setCameraLightDirectionThreshold (Degree angle) |
| Sets the threshold between the camera and the light direction below which the LiSPSM projection is 'flattened', since coincident light and camera projections cause problems with the perspective skew. More...
|
|
virtual void | setOptimalAdjustFactor (Real n) |
| Adjusts the parameter n to produce optimal shadows. More...
|
|
virtual void | setUseSimpleOptimalAdjust (bool s) |
| Sets whether or not to use a slightly simpler version of the camera near point derivation (default is true) More...
|
|
Public Member Functions inherited from Ogre::FocusedShadowCameraSetup |
| FocusedShadowCameraSetup (bool useAggressiveRegion=true) |
|
| ~FocusedShadowCameraSetup () |
|
bool | getUseAggressiveFocusRegion () const |
|
void | setUseAggressiveFocusRegion (bool aggressive) |
| Sets whether or not to use the more aggressive approach to deciding on the focus region or not. More...
|
|
Public Member Functions inherited from Ogre::DefaultShadowCameraSetup |
| DefaultShadowCameraSetup () |
|
virtual | ~DefaultShadowCameraSetup () |
|
Public Member Functions inherited from Ogre::ShadowCameraSetup |
virtual | ~ShadowCameraSetup () |
| Need virtual destructor in case subclasses use it. More...
|
|
Parallel Split Shadow Map (PSSM) shadow camera setup.
- Note
- Because PSSM uses multiple shadow maps per light, you will need to increase the number of shadow textures available (via SceneManager) to match the number of shadow maps required (default is 3 per light).