Skip to content

Commit 1c53fd3

Browse files
committed
Update epsilon value in Voxelier.compute.
1 parent 7f790f0 commit 1c53fd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/Packages/Voxelizer/Shaders/Voxelizer.compute

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ float tri_hit(float3 ori, float3 dir, float3 a, float3 b, float3 c) {
2626
float3 P = cross(dir, e2);
2727
float det = dot(e1, P);
2828

29-
const float epsilon = 0.00000001;
29+
const float epsilon = 1e-12;
3030

3131
// if (det > -epsilon && det < epsilon) return false;
3232
if(abs(det) < epsilon) return -1;

0 commit comments

Comments
 (0)