Ray-triangle-intersection: Return u and v

This commit is contained in:
Lars Mueller 2021-10-18 18:36:09 +02:00
parent 1b85482ca7
commit 1a0ba11b49

@ -228,7 +228,7 @@ function ray_triangle_intersection(origin, direction, triangle)
end
local pos_on_line = f * dot(edge_2, q)
if pos_on_line >= 0 then
return pos_on_line
return pos_on_line, u, v
end
end