Skip to content

Commit

Permalink
Inside view with space ship: fixing normal direction when inside a ho…
Browse files Browse the repository at this point in the history
…rosphere or Margulis tube.
  • Loading branch information
unhyperbolic committed Nov 8, 2023
1 parent 2943666 commit 6d02ded
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/raytracing/shaders/fragment.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -829,9 +829,9 @@ ray_trace_through_hyperboloid_tet(inout RayHit ray_hit)
smallest_p = params.y;

if (horosphereScales[index] != 0.0) {
ray_hit.object_type = object_type_horosphere_enter;
ray_hit.object_type = object_type_horosphere_exit;
} else {
ray_hit.object_type = object_type_margulis_tube_enter;
ray_hit.object_type = object_type_margulis_tube_exit;
}
ray_hit.object_index = vertex;
}
Expand Down

0 comments on commit 6d02ded

Please sign in to comment.