Skip to content

Commit

Permalink
fix separable bssrdf
Browse files Browse the repository at this point in the history
  • Loading branch information
AirGuanZ committed Sep 11, 2020
1 parent da4ddd8 commit 6a6c84c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tracer/src/core/material/bssrdf/separable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ namespace
{
const real cosThetaI = cos(wi, coord_.z);

const real cI = 1 - 2 * fresnel_moment(eta_);
const real cI = 1 - 2 * fresnel_moment(1 / eta_);

const real fr = refl_aux::dielectric_fresnel(eta_, 1, cosThetaI);
const real val = (1 - fr) / (cI * PI_r);

return FSpectrum(val);
return FSpectrum(val) * eta_ * eta_;
}

BSDFSampleResult sample(
Expand Down

0 comments on commit 6a6c84c

Please sign in to comment.