Struct SceneAggregate.LodSetup ​
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Baked LOD switching data for one cluster of aggregated instances.
public readonly record struct SceneAggregate.LodSetup : IEquatable<SceneAggregate.LodSetup>Implements ​
IEquatable<SceneAggregate.LodSetup>
Constructors ​
LodSetup(Vector3, float, float[]) ​
Baked LOD switching data for one cluster of aggregated instances.
public LodSetup(Vector3 Origin, float MaxObjectScale, float[] SwitchDistances)Parameters ​
Origin Vector3
World-space point the camera distance is measured to.
MaxObjectScale float
Largest instance scale in the cluster, scales the projected size metric.
SwitchDistances float[]
Ascending per-level thresholds, first entry 0, compared against a screen-size derived distance metric rather than raw world distance.
Properties ​
MaxObjectScale ​
Largest instance scale in the cluster, scales the projected size metric.
public float MaxObjectScale { get; init; }Property Value ​
Origin ​
World-space point the camera distance is measured to.
public Vector3 Origin { get; init; }Property Value ​
SwitchDistances ​
Ascending per-level thresholds, first entry 0, compared against a screen-size derived distance metric rather than raw world distance.
public float[] SwitchDistances { get; init; }Property Value ​
float[]

