Skip to content

Commit 3e61af9

Browse files
committed
Fix area lighting
1 parent e60cfc9 commit 3e61af9

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
@@ -457,7 +457,7 @@ __kernel void ShadeSurface(
457457
if (NON_BLACK(radiance))
458458
{
459459
// Generate shadow ray
460-
float shadow_ray_length = (1.f - 2.f * CRAZY_LOW_DISTANCE) * length(wo);
460+
float shadow_ray_length = 0.999f * (1.f - CRAZY_LOW_DISTANCE) * length(wo);
461461
float3 shadow_ray_dir = normalize(wo);
462462
float3 shadow_ray_o = diffgeo.p + CRAZY_LOW_DISTANCE * s * diffgeo.n;
463463
int shadow_ray_mask = Bxdf_IsSingular(&diffgeo) ? 0xFFFFFFFF : 0x0000FFFF;

0 commit comments

Comments
 (0)