Skip to content

Commit

Permalink
fix tree traversal
Browse files Browse the repository at this point in the history
forgot to push the breakout function for the tree traveral
  • Loading branch information
Cewein committed Nov 14, 2020
1 parent c1d0acf commit 2b5fb40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions shader/raytraced.frag.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ bool hit(in ray r, float tmin, float tmax, inout hitRecord hit)
hit = tempHit;
}

if(stackAdrr == 0) break;
currentAdrr = stack[--stackAdrr];
}
else
Expand Down

0 comments on commit 2b5fb40

Please sign in to comment.