Vixen
02b45cc4
csharp
public readonly record struct TerrainLodNode

One patch of terrain a frame draws, at one level of detail.

Read the guide page for this →

Remarks

Every node is drawn from the same instanced grid patch, scaled and placed — which is what makes a terrain one draw call. This is the per-instance record that says where.

Fields and properties (6)

  • public int X

    The low X of the samples it covers.

  • public int Z

    The low Z of the samples it covers.

  • public int Quads

    How many quads it spans along each axis.

  • public int Level

    Which level of detail it is. 0 is the finest.

  • public float Morph

    How far it has morphed towards its parent's grid, 0…1.

  • public TerrainRect Rect

    The samples it covers, its far edge included.

Methods (1)

  • public TerrainLodNode(int X, int Z, int Quads, int Level, float Morph)

    One patch of terrain a frame draws, at one level of detail.

Used by (6)

  • TerrainGridPatchTestsVixen.Rendering.Terrain.Tests
  • TerrainLodTestsVixen.Terrain.Tests
  • TerrainLodTreeVixen.Terrain
  • TerrainNodeRecordVixen.Rendering.Terrain
  • TerrainRendererVixen.Rendering.Terrain
  • TypeRegistrationVixen.Terrain