100 const double a_mirrorV = 1.0);
104 const double& a_farClippingPlane);
150 const double& a_coneLength = 1.0,
151 const bool a_displayEnabled =
true);
This structures provide a containers for storing rendering options that are passed through the sceneg...
Definition: CRenderOptions.h:82
GLfloat m_cutOffAngleDeg
Cut off angle (for spot lights only). Only values in the range 0 to 90 degrees.
Definition: CSpotLight.h:174
double m_shadowNearClippingPlane
Shadow map near clipping plane.
Definition: CSpotLight.h:184
Implements a directional light source.
void setShadowMapProperties(const double &a_nearClippingPlane, const double &a_farClippingPlane)
This method define the near and far clipping planes of the shadow map.
Definition: CSpotLight.cpp:330
cShadowMap * m_shadowMap
Shadow map.
Definition: CSpotLight.h:120
void setDisplaySettings(const double &a_sourceRadius=0.02, const double &a_coneLength=1.0, const bool a_displayEnabled=true)
This method sets the display settings of light source. To be used for debugging purposes to display l...
Definition: CSpotLight.cpp:198
cColorf m_displayConeColor
Color used for rendering the light cone of the display model.
Definition: CSpotLight.h:161
GLfloat getCutOffAngleDeg() const
This method returns the cut off angle.
Definition: CSpotLight.h:139
Implements a positional light source.
void setCutOffAngleDeg(const GLfloat &a_angleDeg)
This method sets the cutoff angle in degrees (only affects spotlights) (positional lights with angula...
Definition: CSpotLight.cpp:109
This class implements a virtual world.
Definition: CWorld.h:92
This class implements a spot light source.
Definition: CSpotLight.h:77
bool getShadowMapEnabled() const
This method returns true if the shadow map is enabled, false otherwise.
Definition: CSpotLight.cpp:361
This class implements a positional light source.
Definition: CPositionalLight.h:76
virtual void render(cRenderOptions &a_options)
This method renders a graphical representation (display model) of the light source. (used for debuging purposes typically).
Definition: CSpotLight.cpp:217
bool updateShadowMap(const double a_mirrorH=1.0, const double a_mirrorV=1.0)
This method updates the shadow map.
Definition: CSpotLight.cpp:295
void setSpotExponent(const GLfloat &a_value)
This method sets the concentration level of the light (0.0 - 100.0).
Definition: CSpotLight.h:130
GLfloat getSpotExponent() const
This method returns the concentration level of the light.
Definition: CSpotLight.h:133
This class implements a shadow map for spot lights (cSpotLight).
Definition: CShadowMap.h:76
This class defines a color using a GLfloat representation for each component.
Definition: CColor.h:138
virtual void renderLightSource(cRenderOptions &a_options)
This method renders the lighting properties of this light source in OpenGL.
Definition: CSpotLight.cpp:123
virtual ~cSpotLight()
Destructor of cSpotLight.
Definition: CSpotLight.cpp:94
T cClamp(const T &a_value, const T &a_low, const T &a_high)
This function clamps a value to a specified range.
Definition: CMaths.h:362
Definition: CAudioBuffer.cpp:56
cSpotLight(cWorld *a_world)
Constructor of cSpotLight.
Definition: CSpotLight.cpp:67
This class implements a directional light source.
Definition: CDirectionalLight.h:81
void setShadowMapEnabled(const bool a_enabled)
This method enables of disables the shadow map.
Definition: CSpotLight.cpp:345
double m_shadowFarClippingPlane
Shadow map far clipping plane.
Definition: CSpotLight.h:187
double m_displayConeLength
Length of light cone for display model.
Definition: CSpotLight.h:197
GLfloat m_spotExponent
Concentration of the light.
Definition: CSpotLight.h:171