7#include <Common/assertion.h>
24 m_absorptionCoeff(coeff)
35 *out_coeff = m_absorptionCoeff;
40 PH_ASSERT_MSG(dist >= 0.0_r,
41 "dist = " + std::to_string(dist));
46 transmittance[i] = std::exp(-m_absorptionCoeff[i] * dist);
Definition BfConstant.h:16
virtual ~BfConstant() override=default
BfConstant()
Definition BfConstant.h:18
math::Spectrum calcTransmittance(const real dist) const
Definition BfConstant.h:38
BfConstant(const math::Spectrum &coeff)
Definition BfConstant.h:22
virtual void evalAbsorptionCoeff(const SurfaceHit &, math::Spectrum *const out_coeff) const override
Definition BfConstant.h:29
Definition BlockFunction.h:13
General information about a ray-surface intersection event.
Definition SurfaceHit.h:59
static constexpr auto NUM_VALUES
Definition TSpectrumBase.h:50
Definition TTristimulusSpectrum.h:11
The root for all renderer implementations.
Definition EEngineProject.h:6