gpu_get_fog

This function can be used to retrieve the fog settings. The function returns a 4 element 1D array with the following information:

Note that you can change these values and pass the full array to the gpu_set_fog() function as a single argument.

 

Syntax:

gpu_get_fog();

 

Returns:

Array (4 elements only; see above for details)

 

Example:

var fog_a = gpu_get_fog();
fog_a[1] = c_red;
gpu_set_fog(fog_a);

The above code gets the current fog settings and then sets the colour element of the array to c_red before setting the fog again using the changed array.