Struct FogSpace ​
Namespace: ValveResourceFormat.Renderer.World
Assembly: Renderer.dll
Converts fog distances and heights, which are authored in world units, into the space a view draws in. Only the 3D sky view differs from the world.
public readonly record struct FogSpace : IEquatable<FogSpace>Implements ​
Constructors ​
FogSpace(float, float) ​
Converts fog distances and heights, which are authored in world units, into the space a view draws in. Only the 3D sky view differs from the world.
public FogSpace(float DistanceScale, float HeightOffset)Parameters ​
DistanceScale float
What an authored distance is multiplied by.
HeightOffset float
What an authored height is shifted by, after the scale.
Properties ​
DistanceScale ​
What an authored distance is multiplied by.
public float DistanceScale { get; init; }Property Value ​
float
HeightOffset ​
What an authored height is shifted by, after the scale.
public float HeightOffset { get; init; }Property Value ​
float
World ​
World space, which leaves authored values unchanged.
public static FogSpace World { get; }Property Value ​
Methods ​
Distance(float) ​
Converts an authored distance.
public float Distance(float distance)Parameters ​
distance float
Returns ​
float
Height(float) ​
Converts an authored height.
public float Height(float height)Parameters ​
height float
Returns ​
float

