Struct BspVoxelVisibility.Cluster ​
Namespace: ValveResourceFormat.Blocks
Assembly: ValveResourceFormat.dll
Represents one cluster.
csharp
public readonly struct BspVoxelVisibility.ClusterConstructors ​
Cluster(AABB, int, float, float) ​
Represents one cluster.
csharp
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.
Properties ​
Bounds ​
Gets the box this cluster covers.
csharp
public AABB Bounds { get; }Property Value ​
FarVisibleDistance ​
Gets the distance this cluster stops being drawn at. Later formats dropped this.
csharp
public float FarVisibleDistance { get; }Property Value ​
HasBounds ​
Gets whether this cluster was given a real box. Most are not.
csharp
public bool HasBounds { get; }Property Value ​
NearVisibleDistance ​
Gets the distance this cluster starts being drawn at.
csharp
public float NearVisibleDistance { get; }Property Value ​
RowOffset ​
Gets the byte offset of this cluster's visibility row.
csharp
public int RowOffset { get; }
