The BackgroundColor
property of the SceneCamera
class specifies the color that the scene camera uses to clear the render target. This color is applied before any rendering occurs, effectively setting the background color of the scene.
The BackgroundColor
property of the SceneCamera
class specifies the color that the scene camera uses to clear the render target. This color is applied before any rendering occurs, effectively setting the background color of the scene.
To set the background color of a SceneCamera
, assign a Color
value to the BackgroundColor
property. This can be useful for setting a specific mood or theme for your scene by changing the background color.
// Example of setting the background color of a SceneCamera SceneCamera camera = new SceneCamera(); camera.BackgroundColor = new Color(0.5f, 0.5f, 0.5f); // Sets the background color to a medium gray