![]() |
vkmEngine 1.0.0
A C++ game engine · vkmengine.com
|
The culls past the frustum test, which is Math::frustumIntersectsAABB. More...
Functions | |
| bool | isNearEnough (const Math::AABB &bounds, const VisibilityContext &context) |
| Distance culling: whether the AABB's centre is within maxDistance of the camera. | |
| bool | isLargeEnough (const Math::AABB &bounds, const VisibilityContext &context) |
| Screen-size culling: whether the AABB's bounding sphere projects to minPixels or more. | |
The culls past the frustum test, which is Math::frustumIntersectsAABB.
|
inline |
Distance culling: whether the AABB's centre is within maxDistance of the camera.
| bounds | World-space AABB. |
| context | Supplies cameraPosition and maxDistance (0 or below disables). |
|
inline |
Screen-size culling: whether the AABB's bounding sphere projects to minPixels or more.
The test does not apply behind the camera, under an orthographic view, with a zero viewport, or with minPixels at 0 or below.
| bounds | World-space AABB. |
| context | Supplies the view and screenSizeThresholdSq. |