class CubemapFogController

robot_2Generated
code_blocksInput

Description

The CubemapFogController class in the Sandbox namespace is responsible for managing fog effects using a cubemap texture. It allows for detailed control over how fog is applied in a scene, including distance-based and height-based fog effects.

Members

Instance Properties

Member NameSummary
LodBiasAdjust how quickly the cubemap blurs out at closer distances. A value of 0.0 always uses the lowest resolution MIP over the entire range, while a value of 1.0 uses the highest.
StartDistanceThe distance from the player at which the fog will start to fade in.
EndDistanceThe distance from the player at which the fog will be at full strength.
FalloffExponentExponent for distance falloff. For example, 2.0 is proportional to square of distance.
HeightWidthThe distance between the start of the height fog and where it is fully opaque. Setting this to 0 will disable height based blending.
HeightStartThe absolute height in the map at which the height fog will start to fade in.
HeightExponentExponent for height falloff. For example, 2.0 is proportional to square of distance.
EnabledIs this cubemap fog active?
TextureCubemap texture to use for the fog.
TransformLocation of the fog.
TintTint of the fog.