Function gpu_fog
#include <macawgpu.h>void gpu_fog(double znear, double zfar, int colour);
Sets the fog, which fades things into a colour the further away they are. Switch on "fog" as well.
Parameters
zneardouble- How far in front of the eye the fog starts. It starts at 10.
zfardouble- How far away things are lost in the fog completely. It starts at 50.
colourint- The fog's colour number, from 0 to 255. -1 keeps the colour it had.
In Textures, light and fog, with gpu_bindtexture, gpu_light, gpu_lightoff, gpu_ambient, gpu_shademodel, gpu_material, gpu_pointsize, gpu_stats.