We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e60cfc9 commit 3e61af9Copy full SHA for 3e61af9
App/CL/integrator_pt.cl
@@ -457,7 +457,7 @@ __kernel void ShadeSurface(
457
if (NON_BLACK(radiance))
458
{
459
// Generate shadow ray
460
- float shadow_ray_length = (1.f - 2.f * CRAZY_LOW_DISTANCE) * length(wo);
+ float shadow_ray_length = 0.999f * (1.f - CRAZY_LOW_DISTANCE) * length(wo);
461
float3 shadow_ray_dir = normalize(wo);
462
float3 shadow_ray_o = diffgeo.p + CRAZY_LOW_DISTANCE * s * diffgeo.n;
463
int shadow_ray_mask = Bxdf_IsSingular(&diffgeo) ? 0xFFFFFFFF : 0x0000FFFF;
0 commit comments