bool Bloom { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Bloom property of the RenderOptions class determines whether the bloom effect is applied during rendering. Bloom is a post-processing effect that simulates the way light bleeds around bright areas in a scene, creating a glow effect. This property is a boolean value, where true enables the bloom effect and false disables it.

Usage

To use the Bloom property, you need to create an instance of the RenderOptions class and set the Bloom property to true or false depending on whether you want the bloom effect to be applied.

Example

// Create an instance of RenderOptions
RenderOptions renderOptions = new RenderOptions();

// Enable bloom effect
renderOptions.Bloom = true;

// Apply the render options to a scene object
SceneObject mySceneObject = new SceneObject();
renderOptions.Apply(mySceneObject);