Skip to content

Commit e664537

Browse files
committed
Fix PDF calculation
1 parent 5c75dbd commit e664537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

App/CL/integrator_pt.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ __kernel void ShadeSurface(
397397
float2 extra = Ray_GetExtra(&rays[hitidx]);
398398
float ld = isect.uvwt.w;
399399
float denom = extra.y * diffgeo.area;
400-
float bxdflightpdf = denom > 0.f ? (ld * ld / denom) : 0.f;
400+
float bxdflightpdf = denom > 0.f ? (ld * ld / denom / numemissives) : 0.f;
401401
weight = BalanceHeuristic(1, extra.x, 1, bxdflightpdf);
402402
}
403403

0 commit comments

Comments
 (0)