Skip to content

Commit cd64177

Browse files
authored
Update Geometry_Showcase_Fragment.glsl
1 parent 06ab91c commit cd64177

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

shaders/Geometry_Showcase_Fragment.glsl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,7 @@ float SceneIntersect( out int finalIsRayExiting )
306306
rObjDirection = vec3( uTorusInvMatrix * vec4(rayDirection, 0.0) );
307307
}
308308

309-
d = UnitTorusIntersect( rObjOrigin, rObjDirection, torii[0].tubeRadius, BoxMinBoxMax_ext, 0.0, 1.0,
310-
0.0, 1.0, vec3(-1), vec3(1), n );
309+
d = UnitTorusIntersect( rObjOrigin, rObjDirection, torii[0].tubeRadius, BoxMinBoxMax_ext, n );
311310
d += distToTorusAABB; // if the rayOrigin was moved up closer to torus, now it will be added back into the total distance to intersection
312311
if (d < t)
313312
{

0 commit comments

Comments
 (0)