1
0
mirror of https://github.com/sigonasr2/Shep.git synced 2026-08-19 09:23:35 -05:00

Fix more ambiguity

This commit is contained in:
sigonasr2 2025-08-23 13:16:15 -05:00
parent 8182ca823f
commit 1908c23540

View File

@ -1215,7 +1215,7 @@ namespace olc::utils::hw3d
olc::vf3d ray_projected = mf4d(matProjectionInv) * vf3d(ray_parallel);
ray_projected.w = 0.0f;
// Invert into world space (relative to 0,0,0)
olc::vf3d ray_world = matViewInv * ray_projected;
olc::vf3d ray_world = mf4d(matViewInv) * vf3d(ray_projected);
ray_world.w = 0.0f;
// Return normalised ray to be tidy
return ray_world.norm();