Fog with exponential falloff and near/far color blending.
More...
#include <fog.hpp>
|
| Fog (const glm::vec3 &color, float attenuation_factor=0.0f, const float min=0.0f, const float max=1.0f) |
|
| Fog (const glm::vec3 &color_near=glm::vec3(1.0f), const glm::vec3 &color_far=glm::vec3(1.0f), float attenuation_factor=0.0f, const float min=0.0f, const float max=1.0f) |
|
Fog with exponential falloff and near/far color blending.
◆ Fog() [1/2]
mos::gfx::Fog::Fog |
( |
const glm::vec3 & |
color, |
|
|
float |
attenuation_factor = 0.0f , |
|
|
const float |
min = 0.0f , |
|
|
const float |
max = 1.0f |
|
) |
| |
|
explicit |
- Parameters
-
color | Color of the fog. |
attenuation_factor | Fog density. |
◆ Fog() [2/2]
mos::gfx::Fog::Fog |
( |
const glm::vec3 & |
color_near = glm::vec3(1.0f) , |
|
|
const glm::vec3 & |
color_far = glm::vec3(1.0f) , |
|
|
float |
attenuation_factor = 0.0f , |
|
|
const float |
min = 0.0f , |
|
|
const float |
max = 1.0f |
|
) |
| |
|
explicit |
- Parameters
-
color_near | Close fog color. |
color_far | Far fog color. |
attenuation_factor | Fog density. |
◆ attenuation_factor
float mos::gfx::Fog::attenuation_factor {0.0f} |
◆ color_far
glm::vec3 mos::gfx::Fog::color_far {1.0f} |
Color far from the camera.
◆ color_near
glm::vec3 mos::gfx::Fog::color_near {1.0f} |
Color close to the camera.
◆ max
float mos::gfx::Fog::max {1.0f} |
◆ min
float mos::gfx::Fog::min {0.0f} |
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/mos/checkouts/latest/include/mos/gfx/fog.hpp