Sandbox.SceneSkyBox/FogParamInfo FogParams { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The FogParams property of the SceneSkyBox class is used to control the fog settings specific to the skybox. This property allows you to adjust how fog is rendered in relation to the skybox, providing a more immersive and visually appealing environment.

Usage

To use the FogParams property, you need to have an instance of the SceneSkyBox class. You can then access and modify the FogParams to customize the fog effects for your skybox.

Example

// Create a new SceneSkyBox instance
SceneSkyBox skyBox = new SceneSkyBox();

// Access the FogParams property
Sandbox.SceneSkyBox.FogParamInfo fogParams = skyBox.FogParams;

// Modify fog parameters
fogParams.Density = 0.5f; // Set the fog density
fogParams.Color = new Color(0.5f, 0.5f, 0.5f); // Set the fog color

// Apply the modified fog parameters back to the skybox
skyBox.FogParams = fogParams;