Skip to content

AmbientMode

Used to set the mode for scene ambient lighting. Ambient lighting in a scene has a significant impact on the visual effects and atmosphere of the scene. Different effects can be achieved by using the RenderSetting.setAmbientMode method to set the AmbientMode mode.

attributesdescription
SkyboxSet the ambient lighting using a skybox.
TrilightSet ambient lighting using a rotating light source, such as sunlight or moonlight.
FlatUsed for simple environments without light sources, where all objects in the scene have the same brightness.
CustomCustomize the color and intensity of the ambient lighting.