Skip to content

Commit

Permalink
Fixed the condition that removes transparent surfaces from the last r…
Browse files Browse the repository at this point in the history
…eflection/refraction ray.
  • Loading branch information
apanteleev committed Oct 9, 2019
1 parent f8e9bc5 commit 70ff44d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/refresh/vkpt/shader/reflect_refract.rgen
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ main()
else
reflection_cull_mask |= AS_FLAG_VIEWER_WEAPON;

if(spec_bounce_index < int(global_ubo.pt_reflect_refract - 1))
if(push_constants.bounce_index < int(global_ubo.pt_reflect_refract - 1))
reflection_cull_mask |= AS_FLAG_TRANSPARENT;

trace_ray(Ray(position, direction, t_min, PRIMARY_RAY_T_MAX), backface_culling, reflection_cull_mask);
Expand Down

0 comments on commit 70ff44d

Please sign in to comment.