gpu_get_fog


Description

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:

4 element 1D Array (see above for array elements)


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.


Back: GPU Functions
Next: gpu_get_cullmode
© Copyright YoYo Games Ltd. 2018 All Rights Reserved