![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <camera.hpp>
Public Member Functions | |
constexpr | Fog () noexcept |
constexpr | Fog (const Fog &fog) noexcept=default |
constexpr | Fog (Fog &&fog) noexcept=default |
~Fog ()=default | |
Fog & | operator= (const Fog &fog) noexcept=default |
Fog & | operator= (Fog &&fog) noexcept=default |
constexpr RGB & | GetBaseColor () noexcept |
constexpr const RGB & | GetBaseColor () const noexcept |
constexpr F32 | GetDensity () const noexcept |
constexpr void | SetDensity (F32 density) noexcept |
Private Attributes | |
RGB | m_base_color |
F32 | m_density |
A class of fog with respect to the camera position (eye) to avoid popping artifacts while moving.
|
noexcept |
Constructs a fog.
|
defaultnoexcept |
Constructs a fog from the given fog.
[in] | fog | A reference to the fog to copy. |
|
defaultnoexcept |
Constructs a fog by moving the given fog.
[in] | fog | A reference to the fog to move. |
|
default |
Destructs this fog.
|
noexcept |
Returns the (linear) base color of this fog.
|
noexcept |
Returns the (linear) base color of this fog.
|
noexcept |
Returns the density of this fog.
Copies the given fog to this fog.
[in] | fog | A reference to the fog to copy. |
Moves the given fog to this fog.
[in] | fog | A reference to the fog to move. |
|
noexcept |
Sets the density of this fog to the given value.
[in] | density | The density. |
|
private |
The (linear) base color of this fog.
|
private |
The density of this fog.