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.


语法:

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.


上一页: GPU Functions
下一页: gpu_get_cullmode
© Copyright YoYo Games Ltd. 2018 All Rights Reserved