MaskedOcclusionCulling
MaskedOcclusionCulling copied to clipboard
Feature request: TestSphere
Bounding sphere visibility test.
you can compute a bounding rect from a sphere.
https://research.nvidia.com/publication/2d-polyhedral-bounds-clipped-perspective-projected-3d-sphere
That is an excellent article, thank you! With the bounding rect there would be some amount of false negatives for culling as it doesn't fit tightly, but if that is a problem one can use a bounding polygon with more sides and test using already available MaskedOcclusionCulling::TestTriangles. I'll leave this open in case anyone wants to write an implementation based on the Nvidia paper!