Struct ChunkVisibility
This is a layer of info about wether chunk is visible
and if so, where among all possible positions
this chunk is visible (Center, North, East, etc.)
If Terrain has Left-Right sides connected,
nether Top-Down sides, there is only one possible position: Center
Assembly: fwt.hexterrains.dll
Syntax
[BurstCompile]
public struct ChunkVisibility : IEquatable<ChunkVisibility>
Fields
ChunkOffset
Offset of the chunk position relative to it's center (default) position.
This value is not 0:0 when chunk is found beyond the borders of the terrain area,
when camera is moved outside the terrain borders and chunk is displayed not at it's center (default) position
Declaration
public float3 ChunkOffset
Field Value
IsVisible
If true, chunk is inside the camera frustum. Otherwise the chunk is not visible and should not be rendered
Declaration
Field Value
Calculated transform of the chunk
Declaration
public Matrix4x4 Transform
Field Value
| Type |
Description |
| Matrix4x4 |
|
VisualPosition
Chunk is visible at this position
Declaration
public float3 VisualPosition
Field Value
Methods
Equals(ChunkVisibility)
Declaration
[BurstCompile]
public bool Equals(ChunkVisibility other)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements
Extension Methods