![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <directional_light.hpp>
Public Member Functions | |
| DirectionalLight () noexcept | |
| DirectionalLight (const DirectionalLight &light) noexcept | |
| DirectionalLight (DirectionalLight &&light) noexcept | |
| virtual | ~DirectionalLight () |
| DirectionalLight & | operator= (const DirectionalLight &light) noexcept |
| DirectionalLight & | operator= (DirectionalLight &&light) noexcept |
| RGB & | GetBaseColor () noexcept |
| const RGB & | GetBaseColor () const noexcept |
| F32 | GetIrradiance () const noexcept |
| void | SetIrradiance (F32 irradiance) noexcept |
| const RGB | GetIrradianceSpectrum () const noexcept |
| const AABB & | GetAABB () const noexcept |
| F32 | GetRange () const noexcept |
| F32 | GetWorldRange () const noexcept |
| void | SetRange (F32 range) noexcept |
| bool | UseShadows () const noexcept |
| void | EnableShadows () noexcept |
| void | DissableShadows () noexcept |
| void | ToggleShadows () noexcept |
| void | SetShadows (bool shadows) noexcept |
| const F32x2 | GetClippingPlanes () const noexcept |
| void | SetClippingPlanes (F32x2 clipping_planes) noexcept |
| const F32x2 | GetSize () const noexcept |
| void | SetSize (F32x2 size) noexcept |
| const XMMATRIX XM_CALLCONV | GetLightToProjectionMatrix () const noexcept |
Public Member Functions inherited from mage::Component | |
| virtual | ~Component () |
| Component & | operator= (const Component &component) noexcept |
| Component & | operator= (Component &&component) noexcept |
| State | GetState () const noexcept |
| void | SetState (State state) noexcept |
| U64 | GetGuid () const noexcept |
| bool | HasOwner () const noexcept |
| ProxyPtr< Node > | GetOwner () noexcept |
| ProxyPtr< const Node > | GetOwner () const noexcept |
Private Member Functions | |
| void | UpdateBoundingVolumes () noexcept |
Private Attributes | |
| bool | m_shadows |
| F32x2 | m_clipping_planes |
| F32x2 | m_size |
| AABB | m_aabb |
| RGB | m_base_color |
| F32 | m_irradiance |
Additional Inherited Members | |
Protected Member Functions inherited from mage::Component | |
| Component () noexcept | |
| Component (const Component &component) noexcept | |
| Component (Component &&component) noexcept | |
A class of directional lights.
|
noexcept |
Constructs a directional light.
|
defaultnoexcept |
Constructs a directional light from the given directional light.
| [in] | light | A reference to the directional light to copy. |
|
defaultnoexcept |
Constructs a directional light by moving the given directional light.
| [in] | light | A reference to the directional light to move. |
|
virtualdefault |
Destructs this directional light.
|
noexcept |
Dissables shadows for this directional light.
|
noexcept |
Enables shadows for this directional light.
|
noexcept |
|
noexcept |
Returns the (linear) base color of this directional light.
|
noexcept |
Returns the (linear) base color of this directional light.
|
noexcept |
Returns the clipping planes of this directional light expressed in light space.
|
noexcept |
Returns the irradiance of this directional light.
|
noexcept |
Returns the irradiance spectrum of this directional light.
|
noexcept |
Returns the light-to-projection matrix of the light camera of this directional light.
|
noexcept |
Returns the range of this directional light expressed in light space.
|
noexcept |
Returns the size of the projection plane of this directional light expressed in directional light.
|
noexcept |
Returns the range of this directional light expressed in world space.
|
defaultnoexcept |
Copies the given directional light to this directional light.
| [in] | light | A reference to the directional light to copy. |
|
defaultnoexcept |
Moves the given directional light to this directional light.
| [in] | light | A reference to the directional light to move. |
|
noexcept |
Sets the clipping planes of this directional light expressed in light space to the given clipping planes.
| [in] | clipping_planes | The clipping planes. |
|
noexcept |
Sets the irradiance of this directional light to the given irradiance.
| [in] | irradiance | The irradiance in watts per square meter. |
|
noexcept |
Sets the range of this directional light to the given value expressed in light space.
| [in] | range | The range expressed in light space. |
|
noexcept |
Sets shadows for this directional light to the given value.
| [in] | shadows | true if shadows should be used for this directional light. false otherwise. |
|
noexcept |
Sets the size of the projection plane of this directional light expressed in light space to the given size.
| [in] | size | The size. |
|
noexcept |
Toggles shadows for this directional light.
|
privatenoexcept |
Updates the bounding volumes of this omni light.
|
noexcept |
Checks whether shadows should be used for this directional light.
true if shadows should be used for this directional light. false otherwise.
|
private |
The (linear) base color of this directional light.
|
private |
The clipping planes of this directional light expressed in light space.
|
private |
The irradiance (which is equal to the exitant radiance/radiosity) in watts per square meter of this directional light.
|
private |
A flag indicating whether shadows should be calculated or not not for this directional light.
|
private |
The size of the projection plane of this directional light expressed in light space.