API ReferenceSandbox
SceneFogVolumeclass
Represents a volume of fog in a scene, contributing to volumetric fog effects set on `Sandbox.SceneCamera.VolumetricFog`.
object→SceneFogVolume
Constructors1
Showing 1 constructors
public SceneFogVolume(Sandbox.SceneWorld world, Transform transform, BBox boundingBox, float fogStrength = 1, float falloffExponent = 1)
| Parameter | Type | Description |
|---|---|---|
| world | SceneWorld | — |
| transform | Transform | — |
| boundingBox | BBox | — |
| fogStrength = 1 | float | — |
| falloffExponent = 1 | float | — |
No results match this filter.
Methods1
Showing 1 methods
public void Delete()
Delete this fog volume. You shouldn't access it anymore.
Returns:
void—No results match this filter.
Properties6
Showing 6 properties
public BBox Sandbox.SceneFogVolume.BoundingBox { get; set; }
Defines the spatial boundaries of the fog volume.
public Color Sandbox.SceneFogVolume.Color { get; set; }
Tint applied to the in-scattered light inside this 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.
Returns:
float—public float Sandbox.SceneFogVolume.FogStrength { get; set; }
The intensity of the fog. Higher values indicate denser fog.
Returns:
float—public virtual sealed bool Sandbox.SceneFogVolume.IsValid { get; set; }
Returns:
bool—public Transform Sandbox.SceneFogVolume.Transform { get; set; }
The position and rotation of the fog volume in the scene.
No results match this filter.