|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
|
inline |
Construct a world-space ray from window pixel coordinates.
| window_x | X in window space [0, width] |
| window_y | Y in window space [0, height] (top-left origin) |
| width | Window width in pixels. |
| height | Window height in pixels. |
| vt | Active ViewTransform (view + projection matrices). |
Unprojects two points at z=0 (near) and z=1 (far) in NDC through the inverse of projection * view. The resulting world-space positions define the ray origin and direction.
Definition at line 53 of file HitTest.hpp.
References MayaFlux::Kinesis::ViewTransform::projection, MayaFlux::Kinesis::ViewTransform::view, and width.