Vixen
02b45cc4
csharp
public readonly record struct FoliageOccluders

Last frame's depth pyramid, and what it was rendered with.

Read the guide page for this →

Remarks

⚠ The default is "no pyramid", and it is not the same as an empty one. A pass with no occluders runs the Occlusion = false variant, which carries none of the arithmetic; a pass handed a one-texel pyramid would run the test and reject nothing, at the cost of eight matrix multiplies an instance.

Fields and properties (4)

  • public TextureViewHandle View

    The min-reduced depth chain. HiZPyramid owns it.

  • public Matrix4x4 Projection

    The view-projection the pyramid was rendered with.

  • public int Levels

    How many levels it has.

  • public bool IsValid

    Whether there is a pyramid to test against.

Methods (1)

  • public FoliageOccluders(TextureViewHandle View, Matrix4x4 Projection, int Levels)

    Last frame's depth pyramid, and what it was rendered with.

Used by (3)

  • FoliageCullPassVixen.Rendering.Terrain
  • FoliageCullPassTestsVixen.Rendering.Terrain.Tests
  • FoliageCullViewRecordVixen.Rendering.Terrain