Color Color { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Color property of the GradientFogController class specifies the color of the fog effect. This property allows you to define the tint of the fog, which can be used to create atmospheric effects in your scene.

Usage

To use the Color property, you need to have an instance of the GradientFogController class. You can then get or set the color of the fog using this property. The color is represented by the Color struct, which typically includes RGBA values.

Example

// Example of setting the fog color
GradientFogController fogController = new GradientFogController();
fogController.Color = new Color(0.5f, 0.5f, 0.5f, 1.0f); // Set fog to a grey color with full opacity

// Example of getting the fog color
Color currentFogColor = fogController.Color;
// Use currentFogColor as needed