draw_light_define_ambient


描述

This function is used to control the ambient light of a scene, which is the light that you have in a scene even without having defined any point or directional light sources. It is effectively the overall colour and brightness (or darkness) of a scene. The default colour is c_black.


语法:

draw_light_define_ambient(col)


参数:

参数 描述
col The colour to use (either a constant, a real or a hex value).


返回:

N/A(无返回值)


例如:

draw_light_define_ambient(c_white);

The above code will define the ambient lighting as being white.


上一页: Drawing And The Display
下一页: draw_light_define_point
© Copyright YoYo Games Ltd. 2018 All Rights Reserved