csharp
public struct FoliageCullViewRecordThe view the cull answers, as FoliageCullView packs it.
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 Plane0The near plane, as (normal, d).
public Vector4 Plane1The far plane.
public Vector4 Plane2The left plane.
public Vector4 Plane3The right plane.
public Vector4 Plane4The top plane.
public Vector4 Plane5The bottom plane.
public Vector3 PositionWhere the view is.
public float OccluderLevelsHow many levels the depth pyramid has.
public Matrix4x4 OccluderProjectionThe matrix the pyramid was rendered with — last frame's, not this one's.
public static int SizeInBytesHow many bytes one of these is.
Methods (1)
public static FoliageCullViewRecord Of(in BoundingFrustum frustum, Vector3 position, FoliageOccluders occluders = default(FoliageOccluders))The record a frustum and a viewpoint are.
Used by (3)
- FoliageCullParityTestsVixen.Rendering.Terrain.Tests
- FoliageCullPassVixen.Rendering.Terrain
- FoliageCullPassTestsVixen.Rendering.Terrain.Tests