Implements the plane optimal shadow camera algorithm.
More...
#include <OgreShadowCameraSetupPlaneOptimal.h>
Implements the plane optimal shadow camera algorithm.
 Note
 Important: this routine requires doubleprecision calculations. When you are running under Direct3D, you must ensure that you set the floating point mode to 'Consistent' rather than 'Fastest' to ensure this precision. This does allegedly come with some performance cost but when measuring it appears to be negligible in modern systems for normal usage.

Second important note: this projection also only works for lights with a finite position. Therefore you cannot use it for directional lights at this time.
◆ PlaneOptimalShadowCameraSetup()
Ogre::PlaneOptimalShadowCameraSetup::PlaneOptimalShadowCameraSetup 
( 
const MovablePlane * 
plane  ) 

◆ ~PlaneOptimalShadowCameraSetup()
virtual Ogre::PlaneOptimalShadowCameraSetup::~PlaneOptimalShadowCameraSetup 
( 
 ) 


virtual 
◆ create()
Constructor – requires a plane of interest.
◆ getShadowCamera()
virtual void Ogre::PlaneOptimalShadowCameraSetup::getShadowCamera 
( 
const SceneManager * 
sm, 


const Camera * 
cam, 


const Viewport * 
vp, 


const Light * 
light, 


Camera * 
texCam, 


size_t 
iteration 

) 
 const 

virtual 
Returns shadow camera configured to get 11 homography between screen and shadow map when restricted to plane.
Implements Ogre::ShadowCameraSetup.
The documentation for this class was generated from the following file: