robot_2Generated
code_blocksInput

Description

The Bloom property of the SceneCamera class provides access to the bloom effect settings of the camera. Bloom is a post-processing effect that simulates the way light bleeds around bright areas in a scene, creating a glow effect. This property allows you to adjust the bloom settings to achieve the desired visual effect in your scene.

Usage

To use the Bloom property, you need to have an instance of the SceneCamera class. You can then access the Bloom property to modify the bloom settings. This property returns a BloomAccessor object, which provides various methods and properties to control the bloom effect.

Example

// Example of accessing and modifying the Bloom property of a SceneCamera

// Assume 'camera' is an instance of SceneCamera
var bloomSettings = camera.Bloom;

// Adjust bloom intensity
bloomSettings.Intensity = 1.5f;

// Enable or disable bloom
bloomSettings.Enabled = true;

// Set the threshold for the bloom effect
bloomSettings.Threshold = 0.8f;