Culling Module
Generic helper functions for visibility culling.
These are thin wrappers over MonoGame's native BoundingFrustum, BoundingSphere, and BoundingBox.
Functions and values
| Function or value |
Description
|
Full Usage:
isVisible frustum sphere
Parameters:
BoundingFrustum
sphere : BoundingSphere
Returns: bool
Modifiers: inline |
Checks if a bounding sphere is within the view frustum. Returns true if fully inside or intersecting (partially visible).
|
|
Checks if a 2D rectangle intersects with visible camera bounds. Use with Camera2D.viewportBounds to get the view bounds.
|
Full Usage:
isVisibleBox frustum box
Parameters:
BoundingFrustum
box : BoundingBox
Returns: bool
Modifiers: inline |
Checks if an axis-aligned bounding box is within the view frustum. Returns true if fully inside or intersecting (partially visible). Useful for culling axis-aligned geometry or spatial partition nodes.
|
Mibo