mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-25 16:53:46 +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
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user