Api Sandbox Rendering GradientFogSetup
struct

GradientFogSetup

public sealed struct GradientFogSetup

Setup for defining gradient fog in a view

Properties

Name Type Description
Enabled Boolean Whether the fog is enabled.
StartDistance Single Start distance of the fog.
EndDistance Single End distance of the fog.
StartHeight Single The starting height of the gradient fog.
EndHeight Single The ending height of the gradient fog.
MaximumOpacity Single The maximum opacity of the gradient fog.
Color Color The color of the gradient fog.
DistanceFalloffExponent Single The exponent controlling the distance-based falloff of the fog.
VerticalFalloffExponent Single The exponent controlling the vertical falloff of the fog.

Methods

GradientFogSetup LerpTo(GradientFogSetup desired, Single delta, Boolean clamp = True)

Lerp this GradientFogSetup to a another, allowing transition states.

Assembly: Sandbox.Engine Namespace: Sandbox.Rendering Full Name: Sandbox.Rendering.GradientFogSetup