#include <SO3ShadowCSM.h>
|
| void | getShadowCameraForCascade (const Ogre::SceneManager *sm, const Ogre::Camera *cam, const Ogre::Viewport *vp, const Ogre::Light *light, Ogre::Camera *texCam, size_t iteration, Ogre::Real nearSplit, Ogre::Real farSplit) const |
| |
Definition at line 71 of file SO3ShadowCSM.h.
◆ SplitPointList
◆ StableCSMShadowCameraSetup()
| SO3::StableCSMShadowCameraSetup::StableCSMShadowCameraSetup |
( |
Ogre::SceneManager * |
ogreScene, |
|
|
CSMGpuConstants * |
constants |
|
) |
| |
◆ ~StableCSMShadowCameraSetup()
| SO3::StableCSMShadowCameraSetup::~StableCSMShadowCameraSetup |
( |
| ) |
|
◆ calculateSplitPoints()
| void SO3::StableCSMShadowCameraSetup::calculateSplitPoints |
( |
size_t |
cascadeCount, |
|
|
Ogre::Real |
firstSplitDist, |
|
|
Ogre::Real |
farDist, |
|
|
Ogre::Real |
lambda = 0.95 |
|
) |
| |
Calculate a new splitting scheme.
- Parameters
-
| cascadeCount | The number of cascades to use |
| firstSplitDist | distance of the first split |
| farDist | The far plane to use for the last split |
| lambda | Value between 0 (linear splits) and 1 (logarithmic splits) |
Definition at line 397 of file SO3ShadowCSM.cpp.
◆ getCascadeCount()
| size_t SO3::StableCSMShadowCameraSetup::getCascadeCount |
( |
| ) |
const |
|
inline |
◆ getShadowCamera()
| void SO3::StableCSMShadowCameraSetup::getShadowCamera |
( |
const Ogre::SceneManager * |
sm, |
|
|
const Ogre::Camera * |
cam, |
|
|
const Ogre::Viewport * |
vp, |
|
|
const Ogre::Light * |
light, |
|
|
Ogre::Camera * |
texCam, |
|
|
size_t |
iteration |
|
) |
| const |
|
virtual |
Returns a stable CSM shadow camera for the given iteration.
Definition at line 428 of file SO3ShadowCSM.cpp.
◆ getShadowCameraForCascade()
| void SO3::StableCSMShadowCameraSetup::getShadowCameraForCascade |
( |
const Ogre::SceneManager * |
sm, |
|
|
const Ogre::Camera * |
cam, |
|
|
const Ogre::Viewport * |
vp, |
|
|
const Ogre::Light * |
light, |
|
|
Ogre::Camera * |
texCam, |
|
|
size_t |
iteration, |
|
|
Ogre::Real |
nearSplit, |
|
|
Ogre::Real |
farSplit |
|
) |
| const |
|
protected |
◆ getSplitPadding()
| Ogre::Real SO3::StableCSMShadowCameraSetup::getSplitPadding |
( |
| ) |
const |
|
inline |
Get the padding factor to apply to the near & far distances when matching up splits to one another, to avoid 'cracks'.
Definition at line 101 of file SO3ShadowCSM.h.
◆ getSplitPoints()
| const SplitPointList & SO3::StableCSMShadowCameraSetup::getSplitPoints |
( |
| ) |
const |
|
inline |
◆ setSplitPadding()
| void SO3::StableCSMShadowCameraSetup::setSplitPadding |
( |
Ogre::Real |
pad | ) |
|
|
inline |
◆ setSplitPoints()
| void SO3::StableCSMShadowCameraSetup::setSplitPoints |
( |
const SplitPointList & |
newSplitPoints | ) |
|
Manually configure a new splitting scheme.
- Parameters
-
| newSplitPoints | A list which is cascadeCount + 1 entries long, containing the split points. The first value is the near point, the last value is the far point, and each value in between is both a far point of the previous split, and a near point for the next one. |
Definition at line 419 of file SO3ShadowCSM.cpp.
◆ mCascadeCount
| size_t SO3::StableCSMShadowCameraSetup::mCascadeCount |
|
protected |
◆ mCurrentIteration
| size_t SO3::StableCSMShadowCameraSetup::mCurrentIteration |
|
mutableprotected |
◆ mSplitPadding
| Ogre::Real SO3::StableCSMShadowCameraSetup::mSplitPadding |
|
protected |
◆ mSplitPoints
The documentation for this class was generated from the following files: