|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
|
inlinestaticnoexcept |
Project a world-space AABB3D through a ViewTransform and take the NDC bounding box of its projected corners.
Projects all 8 corners through projection * view, divides by clip-space w, and takes the min/max of the resulting NDC x/y, clamped to [-1,1]. A corner behind the eye (w <= 0) is skipped rather than let it fold the bounding box onto itself, so an object crossing the near plane still resolves from whichever corners are in front of the camera. A box with no corner in front of the camera at all returns the full-screen Scissor: there is nothing visible to clip to, and the caller almost certainly should not be drawing it this frame regardless of what the scissor rect says.
Definition at line 63 of file Scissor.hpp.