Struct BspVoxelVisibility.Cluster ​
Namespace: ValveResourceFormat.Blocks
Assembly: ValveResourceFormat.dll
Represents one cluster.
public readonly record struct BspVoxelVisibility.Cluster : IEquatable<BspVoxelVisibility.Cluster>Implements ​
IEquatable<BspVoxelVisibility.Cluster>
Constructors ​
Cluster(AABB, int, float, float) ​
Represents one cluster.
public Cluster(AABB Bounds, int RowOffset, float NearVisibleDistance, float FarVisibleDistance)Parameters ​
Bounds AABB
The box this cluster covers, empty when the map left it unset.
RowOffset int
Byte offset of this cluster's visibility row.
NearVisibleDistance float
Distance this cluster starts being drawn at.
FarVisibleDistance float
Distance this cluster stops being drawn at. Later formats dropped this.
Properties ​
Bounds ​
The box this cluster covers, empty when the map left it unset.
public AABB Bounds { get; init; }Property Value ​
FarVisibleDistance ​
Distance this cluster stops being drawn at. Later formats dropped this.
public float FarVisibleDistance { get; init; }Property Value ​
float
HasBounds ​
Gets whether this cluster was given a real box. Most are not.
public bool HasBounds { get; }Property Value ​
bool
NearVisibleDistance ​
Distance this cluster starts being drawn at.
public float NearVisibleDistance { get; init; }Property Value ​
float
RowOffset ​
Byte offset of this cluster's visibility row.
public int RowOffset { get; init; }Property Value ​
int

