From d4bb1bedfcb5bf371fa0766f14ea6d59d176f5cb Mon Sep 17 00:00:00 2001 From: Antoine Busch Date: Thu, 2 Feb 2017 09:23:28 +1100 Subject: [PATCH] Remove unused FresnelDielectric from GlassMaterial --- src/core/reflection.cpp | 1 - src/core/reflection.h | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/core/reflection.cpp b/src/core/reflection.cpp index d706a2bc76..bc67866dd8 100644 --- a/src/core/reflection.cpp +++ b/src/core/reflection.cpp @@ -514,7 +514,6 @@ std::string FresnelSpecular::ToString() const { return std::string("[ FresnelSpecular R: ") + R.ToString() + std::string(" T: ") + T.ToString() + StringPrintf(" etaA: %f etaB: %f ", etaA, etaB) + - std::string(" fresnel: ") + fresnel.ToString() + std::string(" mode : ") + (mode == TransportMode::Radiance ? std::string("RADIANCE") : std::string("IMPORTANCE")) + diff --git a/src/core/reflection.h b/src/core/reflection.h index 34c7ec439c..16ef0f3068 100644 --- a/src/core/reflection.h +++ b/src/core/reflection.h @@ -358,7 +358,6 @@ class FresnelSpecular : public BxDF { T(T), etaA(etaA), etaB(etaB), - fresnel(etaA, etaB), mode(mode) {} Spectrum f(const Vector3f &wo, const Vector3f &wi) const { return Spectrum(0.f); @@ -372,7 +371,6 @@ class FresnelSpecular : public BxDF { // FresnelSpecular Private Data const Spectrum R, T; const Float etaA, etaB; - const FresnelDielectric fresnel; const TransportMode mode; };