Open
Description
A super common question is "how do I get a world space ray for the pixel under the mouse". This can be computed from the Pass dimensions and camera matrices, but it's not super obvious how to do this without some experience with camera matrices and 3D math.
Something like x, y, z, dx, dy, dz = Pass:getRay(x, y)
would help bridge the gap and make mouse picking easier. I'm pretty sure the usual arguments for not exposing something ("it doesn't serve every use case, you might want to do it differently!", "it's faster to implement yourself in Lua!") don't really apply here.