ExponentialFog
Exponential fog effect, assignable to a scene.
This fog model uses an exponential function based on view distance to simulate atmospheric fading. It is intended to be assigned to a Scene's fog field at runtime.
cpp
my_scene->fog = vglx::ExponentialFog::Create(0x888888, 0.15f);INFO
Derives from Fog and inherits all public properties and methods.
Construction
Constructors
ExponentialFog()
Constructs an ExponentialFog object.
cpp
ExponentialFog::ExponentialFog(Color color, float density);| Parameter | Description |
|---|---|
| color | Fog color. |
| density | Density factor. |
Factories preferred
ExponentialFog::Create() auto
Creates a shared pointer to an ExponentialFog object.
cpp
static auto ExponentialFog::Create(Color color, float density);| Parameter | Description |
|---|---|
| color | Fog color. |
| density | Density factor. |
Properties
density float
Density factor controlling fog steepness.
cpp
float density {};Functions
GetType() FogType virtual
Returns fog type.
cpp
FogType ExponentialFog::GetType() const override;