8#ifndef META_OCEAN_RENDERING_GI_SPOT_LIGHT_H
9#define META_OCEAN_RENDERING_GI_SPOT_LIGHT_H
22namespace GlobalIllumination
54 inline Scalar coneAngleCos()
const;
66 inline const Vector3& directionInline()
const;
72 inline Scalar coneAngleInline()
const;
78 inline Scalar spotExponentInline()
const;
This class implements a class factory for all Global Illumination objects.
Definition GIFactory.h:30
This class implements a point light.
Definition GIPointLight.h:32
This class implements a spot light.
Definition GISpotLight.h:32
Scalar lightSpotExponent
Light spot exponent.
Definition GISpotLight.h:122
const Vector3 & directionInline() const
Returns the direction of this directional light.
Definition GISpotLight.h:130
Scalar lightConeAngleCos
Cosine of the light cone angle.
Definition GISpotLight.h:119
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.
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:140
Scalar coneAngleInline() const
Returns the angle of the light cone in radian.
Definition GISpotLight.h:135
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:113
Scalar coneAngleCos() const
Returns the cosine of the cone angle.
Definition GISpotLight.h:125
~GISpotLight() override
Destructs a spot light object.
Scalar lightConeAngle
Light cone angle.
Definition GISpotLight.h:116
Scalar coneAngle() const override
Returns the angle of the light cone in radian.
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:129
The namespace covering the entire Ocean framework.
Definition Accessor.h:15