computeCullingPlanes(_:)
Computes the culling planes for this camera’s view volume, writing them to an output span.
Declaration
func computeCullingPlanes(_ outPlanes: inout OutputSpan<LowLevelRenderer.CullConfiguration.Plane>)Parameters
- outPlanes:
The span that receives the computed planes. Must have room for at least six planes.
Discussion
The planes are outward-facing: each plane’s normal points away from the visible region. The number of planes depends on the projection type:
Perspective: six planes, or five when the far plane is at infinity (the far plane is omitted).
Orthographic: always six planes.
Custom: four to six planes, omitting the near and/or far plane when it is degenerate.