Color AmbientLightColor { get; set; }

robot_2Generated
code_blocksInput

Description

The AmbientLightColor property of the SceneCamera class specifies the color of the ambient light in the scene. This property can be used to control the overall lighting of the scene by adjusting the ambient light color. Setting this property to black will result in no ambient light being applied. The alpha component of the color is used for interpolating between Image-Based Lighting (IBL) and a constant color.

Usage

To use the AmbientLightColor property, simply set it to a Color value that represents the desired ambient light color for your scene. For example, to set a soft white ambient light, you might use:

SceneCamera camera = new SceneCamera();
camera.AmbientLightColor = new Color(1.0f, 1.0f, 1.0f, 0.5f);

This will apply a white ambient light with a 50% blend between IBL and the constant color.

Example

SceneCamera camera = new SceneCamera();
// Set ambient light color to a soft white with 50% alpha for blending
camera.AmbientLightColor = new Color(1.0f, 1.0f, 1.0f, 0.5f);