Skip to content

Commit

Permalink
fix GPU code
Browse files Browse the repository at this point in the history
  • Loading branch information
DomFijan authored Aug 16, 2024
1 parent b6fb099 commit 41140e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fresnel/gpu/GeometryConvexPolyhedron.cu
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ RT_PROGRAM void intersect(int item)
vec3<float> t0_n_local(0, 0, 0), t0_p_local(0, 0, 0);
vec3<float> t1_n_local(0, 0, 0), t1_p_local(0, 0, 0);
int t0_plane_hit = 0, t1_plane_hit = 0;
for (int i = 0; i < n_planes && t0 < t1; ++i)
for (int i = 0; i < n_planes && t0 <= t1; ++i)
{
vec3<float> n = vec3<float>(convex_polyhedron_plane_normal[i]);
vec3<float> p = vec3<float>(convex_polyhedron_plane_origin[i]);
Expand Down

0 comments on commit 41140e4

Please sign in to comment.