Class SceneGradientFog
Namespace: ValveResourceFormat.Renderer.SceneEnvironment
Assembly: Renderer.dll
Scene node representing distance and height-based gradient fog.
public class SceneGradientFog : SceneNodeInheritance
object ← SceneNode ← SceneGradientFog
Inherited Members
SceneNode.Transform, SceneNode.LayerName, SceneNode.LayerEnabled, SceneNode.BoundingBox, SceneNode.LocalBoundingBox, SceneNode.Name, SceneNode.Id, SceneNode.IsSelected, SceneNode.Flags, SceneNode.Scene, SceneNode.EnvMaps, SceneNode.ShaderEnvMapVisibility, SceneNode.LightingOrigin, SceneNode.OverlayRenderOrder, SceneNode.CubeMapPrecomputedHandshake, SceneNode.LightProbeVolumePrecomputedHandshake, SceneNode.LightProbeBinding, SceneNode.EntityData, SceneNode.Update(Scene.UpdateContext), SceneNode.Render(Scene.RenderContext), SceneNode.GetSupportedRenderModes(), SceneNode.SetRenderMode(string), SceneNode.Delete(), SceneNode.GetCameraDistance(Camera)
Constructors
SceneGradientFog(Scene)
Scene node representing distance and height-based gradient fog.
public SceneGradientFog(Scene scene)Parameters
scene Scene
Properties
Color
Gets or sets the base fog color.
public Vector3 Color { get; set; }Property Value
Color_Opacity
Gets the color scaled by strength and the max opacity packed as a .
public Vector4 Color_Opacity { get; }Property Value
CullingParams
Gets the squared start distance and height start packed as a for GPU culling.
public Vector2 CullingParams { get; }Property Value
EndDist
Gets or sets the distance at which fog reaches full density.
public float EndDist { get; set; }Property Value
Exponents
Gets the horizontal and vertical falloff exponents packed as a .
public Vector2 Exponents { get; }Property Value
FalloffExponent
Gets or sets the exponent controlling the horizontal fog density falloff.
public float FalloffExponent { get; set; }Property Value
HeightEnd
Gets or sets the world-space height at which height fog reaches full density.
public float HeightEnd { get; set; }Property Value
HeightStart
Gets or sets the world-space height at which height fog begins.
public float HeightStart { get; set; }Property Value
MaxOpacity
Gets or sets the maximum opacity the fog can reach.
public float MaxOpacity { get; set; }Property Value
StartDist
Gets or sets the distance at which fog begins.
public float StartDist { get; set; }Property Value
Strength
Gets or sets the strength multiplier applied to the fog color.
public float Strength { get; set; }Property Value
VerticalExponent
Gets or sets the exponent controlling the vertical fog density falloff.
public float VerticalExponent { get; set; }Property Value
Methods
GetBiasAndScale()
Returns a encoding the distance bias, height bias, distance scale, and height scale for shader use.
public Vector4 GetBiasAndScale()
