Class Renderer.DepthRange
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Depth range for a single layer of the scene.
public record Renderer.DepthRange : IEquatable<Renderer.DepthRange>Inheritance
Implements
IEquatable<Renderer.DepthRange>
Constructors
DepthRange(float, float)
Depth range for a single layer of the scene.
public DepthRange(float Start, float End)Parameters
Start float
The starting depth value from the viewers perspective. Note: 1.0 = closest.
End float
The ending depth value from the viewers perspective. Note: 0.0 = furthest.
Fields
Scene
The main scene.
public static readonly Renderer.DepthRange SceneField Value
Sky
Reserved for the 3D sky, always behind the main scene.
public static readonly Renderer.DepthRange SkyField Value
Viewmodel
Reserved for the first-person viewmodel, always in front of the main scene.
public static readonly Renderer.DepthRange ViewmodelField Value
Properties
End
The ending depth value from the viewers perspective. Note: 0.0 = furthest.
public float End { get; init; }Property Value
Far
The window-space far value.
public float Far { get; }Property Value
Near
The window-space near value.
public float Near { get; }Property Value
Start
The starting depth value from the viewers perspective. Note: 1.0 = closest.
public float Start { get; init; }Property Value
Methods
Apply()
Applies the depth range to the current render state.
public void Apply()
