Avara3D 0.2.0
C++ API reference
a3d::Fog Struct Reference

Configures distance-based fog for a VisualWorld. More...

#include <a3d/visual/Fog.h>

Public Attributes

Color color {}
 Fog color. More...
 
float startDistance {0.0f}
 Distance where fog begins, in scene units; must be non-negative. More...
 
float endDistance
 Distance where fog reaches full strength, in scene units; must be greater than startDistance. More...
 
float transitionExponent {1.0f}
 Fog transition exponent; must be non-negative. More...
 

Detailed Description

Configures distance-based fog for a VisualWorld.

Definition at line 17 of file Fog.h.

Member Data Documentation

◆ color

Color a3d::Fog::color {}

Fog color.

Definition at line 21 of file Fog.h.

◆ endDistance

float a3d::Fog::endDistance
Initial value:
{
1000.0f}

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: