mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-22 07:13:45 +01:00
Ray-triangle-intersection: Return u and v
This commit is contained in:
parent
1b85482ca7
commit
1a0ba11b49
@ -228,7 +228,7 @@ function ray_triangle_intersection(origin, direction, triangle)
|
|||||||
end
|
end
|
||||||
local pos_on_line = f * dot(edge_2, q)
|
local pos_on_line = f * dot(edge_2, q)
|
||||||
if pos_on_line >= 0 then
|
if pos_on_line >= 0 then
|
||||||
return pos_on_line
|
return pos_on_line, u, v
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user