Go to the documentation of this file.
28 #ifndef __ShadowCameraSetupPlaneOptimal_H__
29 #define __ShadowCameraSetupPlaneOptimal_H__
PlaneOptimalShadowCameraSetup()
Default constructor is private.
A viewpoint from which the scene will be rendered.
This class allows you to plug in new ways to define the camera setup when rendering and projecting sh...
Representation of a dynamic light source in the scene.
Definition of a Plane that may be attached to a node, and the derived details of it retrieved simply.
Class encapsulating a standard 4x4 homogeneous matrix.
Manages the organisation and rendering of a 'scene' i.e.
An abstraction of a viewport, i.e.
virtual ~PlaneOptimalShadowCameraSetup()
Destructor.
4-dimensional homogeneous vector.
MovablePlane * mPlane
pointer to plane of interest
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 ...
PlaneOptimalShadowCameraSetup(MovablePlane *plane)
Constructor – requires a plane of interest.
Matrix4 computeConstrainedProjection(const Vector4 &pinhole, const vector< Vector4 >::type &fpoint, const vector< Vector2 >::type &constraint) const
helper function computing projection matrix given constraints
Implements the plane optimal shadow camera algorithm.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.