From 6a6c84c265261be0ac62ad8783a62cd9257549c1 Mon Sep 17 00:00:00 2001 From: Z Guan Date: Fri, 11 Sep 2020 19:49:39 +0800 Subject: [PATCH] fix separable bssrdf --- src/tracer/src/core/material/bssrdf/separable.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tracer/src/core/material/bssrdf/separable.cpp b/src/tracer/src/core/material/bssrdf/separable.cpp index 645d5bd4..62f4c664 100644 --- a/src/tracer/src/core/material/bssrdf/separable.cpp +++ b/src/tracer/src/core/material/bssrdf/separable.cpp @@ -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(