Skip to content

Commit 77c33d5

Browse files
Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent b26739f commit 77c33d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CSG/csg_intersect_leaf_newcone.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ void intersect_leaf_newcone( bool& valid_isect, float4& isect, const quad& q0, c
9898
t_far = z_far > z1 && z_far < z2 && t_far > t_min ? t_far : RT_DEFAULT_MAX ;
9999

100100
const float4 roots = make_float4( t_near, t_far, t_cap1, t_cap2 );
101-
const float t_cand = fminf(roots) ;
102-
101+
const float t_cand = fminf(roots) ;
102+
103103
float3 intersection_point = make_float3(o.x + t_cand * d.x, o.y + t_cand * d.y, o.z + t_cand * d.z);
104-
float3 n = normalize(make_float3(intersection_point.x, intersection_point.y, (z0 - intersection_point.z)*tth2));
104+
float3 n = normalize(make_float3(intersection_point.x, intersection_point.y, (z0 - intersection_point.z) * tth2));
105105

106106
isect.x = n.x;
107107
isect.y = n.y;

0 commit comments

Comments
 (0)