Configures distance-based fog for a VisualWorld.
More...
#include <a3d/visual/Fog.h>
Configures distance-based fog for a VisualWorld.
Definition at line 17 of file Fog.h.
◆ color
◆ endDistance
| float a3d::Fog::endDistance |
Initial value:
Distance where fog reaches full strength, in scene units; must be greater than startDistance.
Definition at line 23 of file Fog.h.
◆ startDistance
| float a3d::Fog::startDistance {0.0f} |
Distance where fog begins, in scene units; must be non-negative.
Definition at line 22 of file Fog.h.
◆ transitionExponent
| float a3d::Fog::transitionExponent {1.0f} |
Fog transition exponent; must be non-negative.
0 uses color alpha, 1 is linear, and values above/below 1 shift the transition later/earlier.
Definition at line 26 of file Fog.h.
The documentation for this struct was generated from the following file: