Skip to content

Commit a891944

Browse files
authored
Merge pull request #111 from FelixTUD/depth-fix
Fix for wrong depth values on clipping plane for ambient occlusion calculations
2 parents 9a8a4b8 + a0de3c0 commit a891944

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/isaac/isaac_kernel.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,7 @@ namespace isaac
757757
normal = start + t0 * dir - particle_pos;
758758
if( t0 < 0 && is_clipped )
759759
{
760+
color.w = 0;
760761
normal = -clipping_normal;
761762
}
762763
}

0 commit comments

Comments
 (0)