8#ifndef META_OCEAN_RENDERING_GI_SPOT_LIGHT_H
9#define META_OCEAN_RENDERING_GI_SPOT_LIGHT_H
static constexpr Scalar deg2rad(const Scalar deg)
static Scalar cos(const Scalar value)
GIPointLight()
Creates a new point light object.
Scalar lightSpotExponent
Light spot exponent.
Definition GISpotLight.h:124
const Vector3 & directionInline() const
Returns the direction of this directional light.
Definition GISpotLight.h:132
Scalar lightConeAngleCos
Cosine of the light cone angle.
Definition GISpotLight.h:121
void setDirection(const Vector3 &direction) override
Sets the direction of this directional light.
bool setConeAngle(const Scalar angle) override
Sets the angle of the light cone in radian.
friend class GIFactory
Definition GISpotLight.h:35
GISpotLight()
Creates a new spot light object.
Vector3 direction() const override
Returns the direction of this directional light.
Scalar spotExponent() const override
Returns the sharpness of the spot as fall off exponent.
Scalar spotExponentInline() const
Returns the sharpness of the spot as fall off exponent.
Definition GISpotLight.h:142
Scalar coneAngleInline() const
Returns the angle of the light cone in radian.
Definition GISpotLight.h:137
bool setSpotExponent(const Scalar exponent) override
Sets the sharpness of the spot as fall off exponent.
Vector3 lightDirection
Light direction inside the local coordinate system.
Definition GISpotLight.h:115
Scalar coneAngleCos() const
Returns the cosine of the cone angle.
Definition GISpotLight.h:127
~GISpotLight() override
Destructs a spot light object.
Scalar lightConeAngle
Light cone angle.
Definition GISpotLight.h:118
Scalar coneAngle() const override
Returns the angle of the light cone in radian.
SpotLight()
Creates a new sport light.
VectorT3< Scalar > Vector3
Definition of a 3D vector.
Definition Vector3.h:29
float Scalar
Definition of a scalar type.
Definition Math.h:129
Namespace of the Rendering Global Illumination library.
Definition GIAttribute.h:23
Namespace of the Rendering library.
Definition AbsoluteTransform.h:18
The namespace covering the entire Ocean framework.
Definition Accessor.h:15