Description
The HeightStart
property of the CubemapFogController
class specifies the absolute height in the map at which the height fog will begin to fade in. This property is crucial for defining the vertical starting point of the fog effect, allowing for a more realistic and immersive environment by simulating atmospheric conditions that change with altitude.
Usage
To use the HeightStart
property, you need to have an instance of the CubemapFogController
class. You can set this property to a float
value representing the height in the game world where the fog should start to appear. Adjusting this value allows you to control the vertical range of the fog effect.
Example
// Create an instance of CubemapFogController
CubemapFogController fogController = new CubemapFogController();
// Set the height at which the fog starts to fade in
fogController.HeightStart = 100.0f;
// Optionally, configure other properties
fogController.HeightWidth = 50.0f;
fogController.Enabled = true;
// Use the fog controller in your scene
Scene.Add(fogController);