Description
The HeightStart
property of the CubemapFogController
class specifies the absolute height in the map at which the height fog will start to fade in. This property is used to control the vertical position where the fog effect begins to appear, allowing for more dynamic and realistic environmental effects in your game.
Usage
To use the HeightStart
property, you need to have an instance of the CubemapFogController
class. You can then set this property to a float
value representing the height in the game world where the fog should start to appear.
Example usage:
var fogController = new CubemapFogController();
fogController.HeightStart = 100.0f; // Fog starts fading in at a height of 100 units
Example
// Create an instance of CubemapFogController
CubemapFogController fogController = new CubemapFogController();
// Set the height at which the fog starts to fade in
fogController.HeightStart = 150.0f;
// Additional configuration for the fog controller
fogController.Enabled = true;
fogController.StartDistance = 50.0f;
fogController.EndDistance = 200.0f;
fogController.Tint = new Color(0.5f, 0.5f, 0.5f, 1.0f);