Set the ambient light color||doc135703

September 20, 2022

Format

 GameSettings:setAmbientColor(color) 

Description

Sets the color of the ambient light. Ambient light is a kind of low-intensity light, which is formed by multiple reflections of the surrounding environment surface, and is not essentially a light source. The use of ambient light can describe the change of the light and dark boundary of an area, which can reflect the three-dimensional effect to a greater extent, and also affect the color of the object, so that the object is also rendered into the color of the environment.


Parameters

Variable name type Description
color Vector3 ambient light color


Code Samples

Blockman.Instance().gameSettings:setAmbientColor({x=0.5,y=0.5,z=0.5})
print(Blockman.Instance().gameSettings:getAmbientColor())