s&box docs

public sealed class Sandbox.SceneFogVolume

Represents a volume of fog in a scene, contributing to volumetric fog effects set on `Sandbox.SceneCamera.VolumetricFog`.

Constructors

Showing 1 constructors

public SceneFogVolume(Sandbox.SceneWorld world, Transform transform, BBox boundingBox, float fogStrength = 1, float falloffExponent = 1)

Parameters

  • fogStrength: Default: 1
  • falloffExponent: Default: 1

Methods

Showing 1 methods

public void Delete()

Delete this fog volume. You shouldn't access it anymore.

Properties

Showing 5 properties

public BBox Sandbox.SceneFogVolume.BoundingBox { get; set; }

Defines the spatial boundaries of the fog volume.

public float Sandbox.SceneFogVolume.FalloffExponent { get; set; }

Controls how quickly the fog fades at the edges of the volume. Higher values give sharper transitions.

public float Sandbox.SceneFogVolume.FogStrength { get; set; }

The intensity of the fog. Higher values indicate denser fog.

public virtual sealed bool Sandbox.SceneFogVolume.IsValid { get; set; }

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.SceneFogVolume

On this page