![]() |
OGRE 1.12.10
Object-Oriented Graphics Rendering Engine
|
Implements the Light Space Perspective Shadow Mapping Algorithm. More...
#include <OgreShadowCameraSetupLiSPSM.h>
Public Member Functions | |
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. | |
virtual Real | getOptimalAdjustFactor () const |
Get the parameter n used to produce optimal shadows. | |
virtual void | getShadowCamera (const SceneManager *sm, const Camera *cam, const Viewport *vp, const Light *light, Camera *texCam, size_t iteration) const |
Returns a LiSPSM shadow camera. | |
virtual bool | getUseSimpleOptimalAdjust () const |
Gets whether or not to use a slightly simpler version of the camera near point derivation (default is true) | |
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. | |
virtual void | setOptimalAdjustFactor (Real n) |
Adjusts the parameter n to produce optimal shadows. | |
virtual void | setUseSimpleOptimalAdjust (bool s) |
Sets whether or not to use a slightly simpler version of the camera near point derivation (default is true) | |
![]() | |
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. | |
![]() | |
virtual | ~ShadowCameraSetup () |
Need virtual destructor in case subclasses use it. | |
Static Public Member Functions | |
static ShadowCameraSetupPtr | create (Real n=0.1f, bool useSimpleNOpt=true, Degree angle=Radian(0.451f)) |
![]() | |
static ShadowCameraSetupPtr | create (bool useAggressiveRegion=true) |
Create an instance. | |
Implements the Light Space Perspective Shadow Mapping Algorithm.
|
virtual |
|
inlinestatic |
n | The adjustment factor |
useSimpleNOpt | |
angle | camera Light Direction Threshold |
|
virtual |
Returns a LiSPSM shadow camera.
Reimplemented from Ogre::FocusedShadowCameraSetup.
Reimplemented in Ogre::PSSMShadowCameraSetup.
Adjusts the parameter n to produce optimal shadows.
n | The adjustment factor - default is 0.1f. |
Get the parameter n used to produce optimal shadows.
Reimplemented in Ogre::PSSMShadowCameraSetup.
Sets whether or not to use a slightly simpler version of the camera near point derivation (default is true)
Gets whether or not to use a slightly simpler version of the camera near point derivation (default is true)
|
virtual |
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.
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.