Vixen
02b45cc4
csharp
public struct FoliageCullViewRecord

The view the cull answers, as FoliageCullView packs it.

Read the guide page for this →

Remarks

Six named planes rather than an array, because a fixed-size buffer would make this an unsafe struct for no gain — the shader's float4[6] is six sixteen-byte slots either way.

Fields and properties (10)

  • public Vector4 Plane0

    The near plane, as (normal, d).

  • public Vector4 Plane1

    The far plane.

  • public Vector4 Plane2

    The left plane.

  • public Vector4 Plane3

    The right plane.

  • public Vector4 Plane4

    The top plane.

  • public Vector4 Plane5

    The bottom plane.

  • public Vector3 Position

    Where the view is.

  • public float OccluderLevels

    How many levels the depth pyramid has.

  • public Matrix4x4 OccluderProjection

    The matrix the pyramid was rendered with — last frame's, not this one's.

  • public static int SizeInBytes

    How many bytes one of these is.

Methods (1)

Used by (3)

  • FoliageCullParityTestsVixen.Rendering.Terrain.Tests
  • FoliageCullPassVixen.Rendering.Terrain
  • FoliageCullPassTestsVixen.Rendering.Terrain.Tests