Macaw OS C reference

Function fog3d

#include <macaw3d.h>
void fog3d(double near, double far, int colour);

Adds fog to meshes, so far-off things fade into a colour.

Parameters

neardouble
How far from the camera the fog starts, in world units.
fardouble
How far away the fog becomes solid, in world units.
colourint
The fog's colour number.

In Lamps, fog and lines, with pointlight3d, nofog3d, project3d, line3d, stats3d.