Culling Module
Generic helper functions for visibility culling.
These helpers operate on standard MonoGame primitives (BoundingFrustum, BoundingSphere, etc) to separate spatial partitioning logic from rendering logic.
Functions and values
| Function or value |
Description
|
Full Usage:
isGenericVisible frustum box
Parameters:
BoundingFrustum
box : BoundingBox
Returns: bool
Modifiers: inline |
Checks if a 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.
|
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). Use with Camera3D.boundingFrustum to get the frustum.
|
|
Checks if a 2D rectangle intersects with the visible camera bounds. Use with Camera2D.viewportBounds to get the view bounds.
Example
val viewBounds: obj
|
Mibo