Skip to content

Commit fbc7a09

Browse files
authored
Update Sphereflake_Fragment.glsl
1 parent 11edd62 commit fbc7a09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shaders/Sphereflake_Fragment.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ float SceneIntersect( out int isRayExiting )
198198
rObjDirection = vec3( invTransformMatrix * vec4(rayDirection, 0.0) );
199199
d = UnitSphereIntersect(rObjOrigin, rObjDirection, n);
200200

201-
if (d > 0.0 && d < t)
201+
if (d < t)
202202
{
203203
t = d;
204204
hitNormal = n;

0 commit comments

Comments
 (0)