8 #ifndef META_OCEAN_RENDERING_GLES_SPOT_LIGHT_H
9 #define META_OCEAN_RENDERING_GLES_SPOT_LIGHT_H
22 namespace GLESceneGraph
This class implements a class factory for all GLESceneGraph objects.
Definition: GLESFactory.h:30
This class implements a GLESceneGraph point light object.
Definition: GLESPointLight.h:32
This class implements a container for an OpenGL ES shader program.
Definition: GLESShaderProgram.h:53
This class implements a GLESceneGraph spot light.
Definition: GLESSpotLight.h:32
Scalar coneAngle_
Light cone angle.
Definition: GLESSpotLight.h:97
Scalar spotExponent() const override
Returns the sharpness of the spot as fall off exponent.
GLESSpotLight()
Creates a new GLESceneGraph spot light object.
Scalar spotExponent_
Light spot exponent.
Definition: GLESSpotLight.h:100
Vector3 direction() const override
Returns the direction of this directional light.
~GLESSpotLight() override
Destructs a GLESceneGraph spot light object.
Vector3 direction_
Light direction inside the local coordinate system.
Definition: GLESSpotLight.h:94
Scalar coneAngle() const override
Returns the angle of the light cone in radian.
bool setSpotExponent(const Scalar exponent) override
Sets the sharpness of the spot as fall off exponent.
void bindLight(GLESShaderProgram &shaderProgram, const HomogenousMatrix4 &camera_T_model, const HomogenousMatrix4 &camera_T_world, const SquareMatrix3 &normalMatrix, const unsigned int index) override
Binds this light source.
bool setConeAngle(const Scalar angle) override
Sets the angle of the light cone in radian.
void setDirection(const Vector3 &direction) override
Sets the direction of this directional light.
This class is the base class for all spot lights.
Definition: rendering/SpotLight.h:37
float Scalar
Definition of a scalar type.
Definition: Math.h:128
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15