csharp
public readonly record struct FoliageOccludersLast frame's depth pyramid, and what it was rendered with.
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 ViewThe min-reduced depth chain. HiZPyramid owns it.
public Matrix4x4 ProjectionThe view-projection the pyramid was rendered with.
public int LevelsHow many levels it has.
public bool IsValidWhether 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