Color AmbientLightColor

book_4_sparkGenerated
code_blocksInput

Description

The AmbientLightColor field in the SceneWorld class is used to set the ambient lighting color for the scene. This color affects the overall lighting of the scene, providing a base level of illumination that affects all objects within the scene world.

Usage

To use the AmbientLightColor field, simply assign a Color value to it. This will change the ambient light color of the scene world, affecting how objects are lit.

Example

// Create a new SceneWorld
SceneWorld mySceneWorld = new SceneWorld();

// Set the ambient light color to a soft white
mySceneWorld.AmbientLightColor = new Color(0.8f, 0.8f, 0.8f); // RGB values range from 0 to 1

// Alternatively, set it to a specific color using predefined colors
mySceneWorld.AmbientLightColor = Color.Cyan;