d3d_light_define_ambient

Set the colour for the ambient lighting of a 3D scene.

Syntax:

d3d_light_define_ambient(colour)


Argument Description
colour The colour of the ambient light.


Returns: N/A


Description

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, and the default colour is c_black.


Example:

d3d_light_define_ambient(c_white);

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


Back: 3D Drawing
Next: d3d_vertex_normal
© Copyright YoYo Games Ltd. 2018 All Rights Reserved