Skip to content

Commit 8727b9d

Browse files
fix a typo
1 parent 6a6327a commit 8727b9d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples_tests/42.FragmentShaderPathTracer/common.glsl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,7 @@ void main()
573573
if (ray._mutable.intersectionT>=_immutable.maxT)
574574
{
575575
missProgram(_immutable,ray._payload);
576+
break;
576577
}
577578
else if (!anyHitType)
578579
{

examples_tests/42.FragmentShaderPathTracer/litBySphere.frag

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ bool closestHitProgram(inout Ray_t ray, inout nbl_glsl_xoroshiro64star_state_t s
120120

121121
// check if we even have a BSDF at all
122122
uint bsdfID = bitfieldExtract(bsdfLightIDs,0,16);
123-
if (depth<MAX_DEPTH && bsdfID!=INVALID_ID_16BIT)
123+
if (bsdfID!=INVALID_ID_16BIT)
124124
{
125125
// common preload
126126
BSDFNode bsdf = bsdfs[bsdfID];

0 commit comments

Comments
 (0)