146 const double a_lightFieldViewAngle,
147 const double a_distanceNear,
148 const double a_distanceFar,
149 const double a_mirrorH,
150 const double a_mirrorV);
This class implements a 3D vector.
Definition: CVector3d.h:88
This structures provide a containers for storing rendering options that are passed through the sceneg...
Definition: CRenderOptions.h:82
cTransform m_lightViewMatrix
View matrix of the light source creating this shadow.
Definition: CShadowMap.h:129
void setQualityMedium()
This method sets the quality resolution of the shadow map to 1024 x 1024 pixels.
Definition: CShadowMap.h:110
void setQualityVeryHigh()
This method sets the quality resolution of the shadow map to 4096 x 4096 pixels.
Definition: CShadowMap.h:116
virtual void render(cRenderOptions &a_options)
This method contains the OpenGL rendering code for shadow maps. (Do not call this code directly...
Definition: CShadowMap.cpp:88
This class implements a virtual world.
Definition: CWorld.h:92
void setQualityHigh()
This method sets the quality resolution of the shadow map to 2048 x 2048 pixels.
Definition: CShadowMap.h:113
Implementation of a framebuffer.
bool m_enabled
If true, then shadow map is enabled, false otherwise.
Definition: CShadowMap.h:160
This class implements an OpenGL framebuffer.
Definition: CFrameBuffer.h:87
cShadowMap()
Constructor of cShadowMap.
Definition: CShadowMap.cpp:65
void setQualityVeryLow()
This method sets the quality resolution of the shadow map to 256 x 256 pixels.
Definition: CShadowMap.h:104
This class implements a shadow map for spot lights (cSpotLight).
Definition: CShadowMap.h:76
virtual ~cShadowMap()
Destructor of cShadowMap.
Definition: CShadowMap.h:88
cTransform m_lightProjectionMatrix
Projection matrix of the light source creating this shadow.
Definition: CShadowMap.h:126
bool updateMap(cWorld *a_world, const cVector3d &a_lightPos, const cVector3d &a_lightLookat, const cVector3d &a_lightUp, const double a_lightFieldViewAngle, const double a_distanceNear, const double a_distanceFar, const double a_mirrorH, const double a_mirrorV)
This method updates the shadow map. (Do not call this code directly.)
Definition: CShadowMap.cpp:226
Definition: CAudioBuffer.cpp:56
void setQualityLow()
This method sets the quality resolution of the shadow map to 512 x 512 pixels.
Definition: CShadowMap.h:107
void setEnabled(bool a_enabled)
This method enables or disables this shadow map.
Definition: CShadowMap.h:98
void setSize(const unsigned int a_width, const unsigned int a_height)
This method sets the resolution of the framebuffer by defining its width and height in pixels...
Definition: CFrameBuffer.cpp:147
bool getEnabled() const
This method returns true if the this shadow map is enabled, false otherwise.
Definition: CShadowMap.h:101