110 const double a_mirrorV = 1.0);
114 const double& a_farClippingPlane);
160 const double& a_coneLength = 1.0,
161 const bool a_displayEnabled =
true);
Implements a directional light source.
Implements a positional light source.
This class implements a directional light source.
Definition CDirectionalLight.h:82
This class implements a positional light source.
Definition CPositionalLight.h:77
This class implements a shadow map for spot lights (cSpotLight).
Definition CShadowMap.h:77
This class implements a spot light source.
Definition CSpotLight.h:78
void setShadowMapEnabled(const bool a_enabled)
This method enables of disables the shadow map.
Definition CSpotLight.cpp:345
GLfloat getSpotExponent() const
This method returns the concentration level of the light.
Definition CSpotLight.h:143
cColorf m_displayConeColor
Color used for rendering the light cone of the display model.
Definition CSpotLight.h:171
GLfloat m_cutOffAngleDeg
Cut off angle (for spot lights only). Only values in the range 0 to 90 degrees.
Definition CSpotLight.h:184
void setSpotExponent(const GLfloat &a_value)
This method sets the concentration level of the light (0.0 - 100.0).
Definition CSpotLight.h:140
virtual void renderLightSource(cRenderOptions &a_options)
This method renders the lighting properties of this light source in OpenGL.
Definition CSpotLight.cpp:123
virtual void render(cRenderOptions &a_options)
This method renders a graphical representation (display model) of the light source....
Definition CSpotLight.cpp:217
double m_displayConeLength
Length of light cone for display model.
Definition CSpotLight.h:207
double m_shadowFarClippingPlane
Shadow map far clipping plane.
Definition CSpotLight.h:197
GLfloat getCutOffAngleDeg() const
This method returns the cut off angle.
Definition CSpotLight.h:149
virtual std::string getClassName()
This method returns the name of the object class.
Definition CSpotLight.h:99
bool updateShadowMap(const double a_mirrorH=1.0, const double a_mirrorV=1.0)
This method updates the shadow map.
Definition CSpotLight.cpp:295
double m_shadowNearClippingPlane
Shadow map near clipping plane.
Definition CSpotLight.h:194
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
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
bool getShadowMapEnabled() const
This method returns true if the shadow map is enabled, false otherwise.
Definition CSpotLight.cpp:361
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:130
GLfloat m_spotExponent
Concentration of the light.
Definition CSpotLight.h:181
virtual ~cSpotLight()
Destructor of cSpotLight.
Definition CSpotLight.cpp:94
This class implements a virtual world.
Definition CWorld.h:93
Definition CAudioBuffer.cpp:57
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:387
This class defines a color using a GLfloat representation for each component.
Definition CColor.h:139
This structures provide a containers for storing rendering options that are passed through the sceneg...
Definition CRenderOptions.h:83