Skip to content

Commit

Permalink
Improve visible intensity
Browse files Browse the repository at this point in the history
  • Loading branch information
iaomw committed Jun 11, 2024
1 parent 71c9dd9 commit d4a645d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zenovis/xinxinoptix/Light.cu
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ extern "C" __global__ void __closesthit__radiance()
rect.normal, shadingP,
light.spreadMajor, uvScale, uvOffset);

if (!valid) { return; }
//if (!valid) { return; }

SphericalRect squad;
SphericalRectInit(squad, shadingP, rect.v, rect.axisX, rect.lenX, rect.axisY, rect.lenY);
Expand Down Expand Up @@ -221,7 +221,7 @@ extern "C" __global__ void __closesthit__radiance()
default: return;
}

if (light.type == zeno::LightType::Diffuse && light.spreadMajor < 1.0f) {
if (light.type == zeno::LightType::Diffuse && light.spreadMajor < 1.0f && prd->depth > 0) {

auto void_angle = 0.5f * (1.0f - light.spreadMajor) * M_PIf;
auto atten = light_spread_attenuation(
Expand Down

0 comments on commit d4a645d

Please sign in to comment.