8#ifndef META_OCEAN_RENDERING_GLES_SPOT_LIGHT_H
9#define META_OCEAN_RENDERING_GLES_SPOT_LIGHT_H
static constexpr Scalar deg2rad(const Scalar deg)
GLESPointLight()
Creates a new GLESceneGraph point light object.
This class implements a container for an OpenGL ES shader program.
Definition GLESShaderProgram.h:53
Scalar coneAngle_
Light cone angle.
Definition GLESSpotLight.h:99
friend class GLESFactory
Definition GLESSpotLight.h:35
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:102
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:96
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.
SpotLight()
Creates a new sport light.
HomogenousMatrixT4< Scalar > HomogenousMatrix4
Definition of the HomogenousMatrix4 object, depending on the OCEAN_MATH_USE_SINGLE_PRECISION flag eit...
Definition HomogenousMatrix4.h:44
VectorT3< Scalar > Vector3
Definition of a 3D vector.
Definition Vector3.h:29
SquareMatrixT3< Scalar > SquareMatrix3
Definition of the SquareMatrix3 object, depending on the OCEAN_MATH_USE_SINGLE_PRECISION either with ...
Definition SquareMatrix3.h:43
float Scalar
Definition of a scalar type.
Definition Math.h:129
Namespace of the Rendering GLESceneGraph library.
Definition rendering/glescenegraph/android/Android.h:20
Namespace of the Rendering library.
Definition AbsoluteTransform.h:18
The namespace covering the entire Ocean framework.
Definition Accessor.h:15