Struct VolumetricFog.FogVolume ​
Namespace: ValveResourceFormat.Renderer.SceneEnvironment
Assembly: Renderer.dll
One env_volumetric_fog_volume.
public readonly record struct VolumetricFog.FogVolume : IEquatable<VolumetricFog.FogVolume>Implements ​
IEquatable<VolumetricFog.FogVolume>
Constructors ​
FogVolume(Matrix4x4, Vector3, Vector3, float, float, int, float, float, float, Vector3?, bool) ​
One env_volumetric_fog_volume.
public FogVolume(Matrix4x4 LocalToWorld, Vector3 Mins, Vector3 Maxs, float Strength, float FalloffExponent, int Shape, float HeightFogDepth, float HeightFogEdgeWidth, float IndirectStrength, Vector3? Tint, bool FollowsRotation)Parameters ​
LocalToWorld Matrix4x4
Placement of the volume, without scale.
Mins Vector3
Corner of the box with the smallest coordinates, in the volume's space.
Maxs Vector3
Corner of the box with the largest coordinates, in the volume's space.
Strength float
Density in the center of the volume.
FalloffExponent float
Exponent of the falloff towards the edge.
Shape int
0 for a falloff towards the faces of the box, 1 for a radial one, 2 for a falloff from the top and the sides.
HeightFogDepth float
Distance below the top over which a height shaped volume fades.
HeightFogEdgeWidth float
Distance from the sides over which a height shaped volume fades.
IndirectStrength float
Strength of the baked light in the volume, or a negative value to leave the controller's.
Tint Vector3?
Linear color the volume gives the fog, or null to leave the controller's.
FollowsRotation bool
Whether the box turns with the angles of the entity, rather than staying along the axes.
Properties ​
FalloffExponent ​
Exponent of the falloff towards the edge.
public float FalloffExponent { get; init; }Property Value ​
float
FollowsRotation ​
Whether the box turns with the angles of the entity, rather than staying along the axes.
public bool FollowsRotation { get; init; }Property Value ​
bool
HeightFogDepth ​
Distance below the top over which a height shaped volume fades.
public float HeightFogDepth { get; init; }Property Value ​
float
HeightFogEdgeWidth ​
Distance from the sides over which a height shaped volume fades.
public float HeightFogEdgeWidth { get; init; }Property Value ​
float
IndirectStrength ​
Strength of the baked light in the volume, or a negative value to leave the controller's.
public float IndirectStrength { get; init; }Property Value ​
float
LocalToWorld ​
Placement of the volume, without scale.
public Matrix4x4 LocalToWorld { get; init; }Property Value ​
Maxs ​
Corner of the box with the largest coordinates, in the volume's space.
public Vector3 Maxs { get; init; }Property Value ​
Mins ​
Corner of the box with the smallest coordinates, in the volume's space.
public Vector3 Mins { get; init; }Property Value ​
Shape ​
0 for a falloff towards the faces of the box, 1 for a radial one, 2 for a falloff from the top and the sides.
public int Shape { get; init; }Property Value ​
int
Strength ​
Density in the center of the volume.
public float Strength { get; init; }Property Value ​
float
Tint ​
Linear color the volume gives the fog, or null to leave the controller's.
public Vector3? Tint { get; init; }
