Transpose matrices from ray query get intersection using OpTranspose
Closed this issue · 1 comments
Is your feature request related to a problem? Please describe.
Currently our matrices returned by rayQueryGetCommittedIntersection
(world to object & object to world) are incorrectly transposed, since no transpose function exists in wgsl a user must manually implement it. However, spirv does offer OpTranspose
which could be faster than user implemented alternatives (and should never be slower).
Describe the solution you'd like
use OpTranspose
to transpose these matrices before returning them.
Describe alternatives you've considered
It's not hard to implement alternatives so users could manually do this.
Additional context
This is labeled as a bug in the documentation
Never mind, forgot matrix multiplication is non-commutative, this is just a docs issue