draw_set_lighting


描述

This function is used to enable all lighting effects. Default is disabled (false).


语法:

draw_set_lighting(enable)


参数:

参数 描述
enable or disable all lighting (true or false)


返回:

N/A(无返回值)


例如:

draw_set_lighting(true);
draw_light_define_direction(1, 0, 1, 0, c_white);
draw_light_enable(1, true);

The above code will enable lighting for the whole scene, then define a white directional light in the room space, and then finally turn that light on.


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