csFogMath Class Reference
Fog math utilities. More...
#include <cstool/fogmath.h>
Static Public Member Functions | |
| static float | DistanceForOpacity (float density, float opacity) |
| Inverse of OpacityAtDistance. | |
| static float | OpacityAtDistance (float density, float dist) |
| Compute fog opacity at a given distance. | |
| static float | Ramp (float depth) |
| Calculates fog density for a certain depth in the range [0. | |
Detailed Description
Fog math utilities.Definition at line 27 of file fogmath.h.
Member Function Documentation
| static float csFogMath::DistanceForOpacity | ( | float | density, | |
| float | opacity | |||
| ) | [inline, static] |
| static float csFogMath::OpacityAtDistance | ( | float | density, | |
| float | dist | |||
| ) | [inline, static] |
| static float csFogMath::Ramp | ( | float | depth | ) | [inline, static] |
The documentation for this class was generated from the following file:
- cstool/fogmath.h
Generated for Crystal Space 1.4.0 by doxygen 1.5.8
