Skip to content

Commit

Permalink
Remove two-sidedness in light emission power estimation
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonKang130 committed May 17, 2024
1 parent 1762a15 commit 7aaac46
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/lights/diffuse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,6 @@ class DiffuseLightClosure final : public Light::Closure {
auto L = light->texture()->evaluate_illuminant_spectrum(it_light, swl(), time()).value *
light->node<DiffuseLight>()->scale();
auto luminance = pipeline.spectrum()->cie_y(swl(), L);
$if(light->node<DiffuseLight>()->two_sided()) {
luminance *= 2.f;
};
return luminance;
}

Expand Down

0 comments on commit 7aaac46

Please sign in to comment.