This function can be used to retrieve the fog settings. The function returns a 4 element 1D array with the following information:
- [0] = enabled toggle (a boolean, either true or false), default false
- [1] = colour (real), default c_black
- [2] = start distance (real), default 0
- [3] = end distance (real), default 1
Note that you can change these values and pass the full array to the gpu_set_fog function as a single argument.
gpu_get_fog();
4 element 1D Array (see above for array elements)
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.