mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-28 02:58:35 +02:00
~ | Small fix
This commit is contained in:
@ -77,7 +77,7 @@ bool intersectTriangle(Ray ray, GPUTriangle obj, out hitInfo hit)
|
||||
vec3 pvec = cross(ray.direction, vertex2);
|
||||
float det = dot(vertex1, pvec);
|
||||
|
||||
if (abs(det) < 1e-8)
|
||||
if (abs(det) < 1e-10)
|
||||
return (false);
|
||||
|
||||
vec3 tvec = ray.origin - obj.position;
|
||||
|
Reference in New Issue
Block a user