book_4_sparkGenerated
code_blocksInput

Description

The Bloom property of the SceneCamera class provides access to the tonemapping properties of the camera. This allows you to control the bloom effect, which is a post-processing effect that simulates the way light bleeds around bright areas in a scene, enhancing the visual appeal by adding a glow to bright areas.

Usage

To use the Bloom property, you need to have an instance of the SceneCamera class. You can then access the Bloom property to adjust the bloom settings for the camera. This is useful for creating visually striking scenes where the bloom effect can enhance the realism or artistic style of the rendered image.

Example

// Example of accessing the Bloom property
SceneCamera camera = new SceneCamera();
var bloomSettings = camera.Bloom;

// Adjust bloom settings
bloomSettings.Intensity = 1.5f;
bloomSettings.Threshold = 0.8f;
bloomSettings.SoftKnee = 0.5f;

// Apply changes to the camera
camera.Bloom = bloomSettings;