Xors3d Engine
Fog types

Defines

#define FOG_LINEAR   1
#define FOG_NONE   0

Define Documentation

#define FOG_NONE   0

Fog will be disabled.

#define FOG_LINEAR   1

Linear fog will be used. Fog will be computed by this formula: f = (end - d) / (end - start), where 'start' is the distance at which fog effects begin, 'end' is the distance at which fog effects no longer increase, 'd' represents depth, or the distance from the viewpoint. Specify 'start' and 'end' with xCameraFogRange() command.