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.
csharp
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.
csharp
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.
csharp
public float DistanceScale { get; init; }Property Value ​
HeightOffset ​
What an authored height is shifted by, after the scale.
csharp
public float HeightOffset { get; init; }Property Value ​
World ​
World space, which leaves authored values unchanged.
csharp
public static FogSpace World { get; }Property Value ​
Methods ​
Distance(float) ​
Converts an authored distance.
csharp
public float Distance(float distance)Parameters ​
distance float
Returns ​
Height(float) ​
Converts an authored height.
csharp
public float Height(float height)Parameters ​
height float

