float MaximumOpacity { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The MaximumOpacity property of the GradientFogController class specifies the maximum opacity level of the fog effect. This property determines how dense the fog can appear at its thickest point. The value is a float representing the opacity, where 0.0f means fully transparent and 1.0f means fully opaque.

Usage

To use the MaximumOpacity property, you can get or set its value to control the maximum opacity of the fog in your scene. This property is useful for creating atmospheric effects by adjusting the visibility and density of the fog.

Example

// Example of setting the MaximumOpacity property
GradientFogController fogController = new GradientFogController();
fogController.MaximumOpacity = 0.8f; // Set the maximum opacity to 80%

// Example of getting the MaximumOpacity property
float currentOpacity = fogController.MaximumOpacity;
// Use currentOpacity as needed