|
| PlaneOptimalShadowCameraSetup (const MovablePlane *plane) |
|
virtual | ~PlaneOptimalShadowCameraSetup () |
|
virtual void | getShadowCamera (const SceneManager *sm, const Camera *cam, const Viewport *vp, const Light *light, Camera *texCam, size_t iteration) const |
| Returns shadow camera configured to get 1-1 homography between screen and shadow map when restricted to plane. More...
|
|
Public Member Functions inherited from Ogre::ShadowCameraSetup |
virtual | ~ShadowCameraSetup () |
| Need virtual destructor in case subclasses use it. More...
|
|
virtual void | getShadowCamera (const SceneManager *sm, const Camera *cam, const Viewport *vp, const Light *light, Camera *texCam, size_t iteration) const =0 |
| Function to implement – must set the shadow camera properties. More...
|
|
Implements the plane optimal shadow camera algorithm.
- Note
- Important: this routine requires double-precision 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.