Photon Engine 2.0.0-beta
A physically based renderer.
|
Laurent Belcour's layered BSDF model. This is the symmetric model as described in Section 6.2 of the paper [1]. Laurent Belcour's project page: https://belcour.github.io/blog/research/2018/05/05/brdf-realtime-layered.html. More...
#include <LbLayeredSurface.h>
Public Member Functions | |
LbLayeredSurface (const std::vector< math::Spectrum > &iorNs, const std::vector< math::Spectrum > &iorKs, const std::vector< real > &alphas, const std::vector< real > &depths, const std::vector< real > &gs, const std::vector< math::Spectrum > &sigmaAs, const std::vector< math::Spectrum > &sigmaSs) | |
ESurfacePhenomenon | getPhenomenonOf (SurfaceElemental elemental) const override |
Get the phenomenon of a surface component. One can also setup query for a specific elemental. See BsdfQueryContext . | |
std::string | toString () const override |
Public Member Functions inherited from ph::SurfaceOptics | |
SurfaceOptics () | |
virtual | ~SurfaceOptics ()=default |
void | calcBsdf (BsdfEvalQuery &eval) const |
Executes a BSDF evaluation query. Respects sidedness policy. | |
void | genBsdfSample (BsdfSampleQuery &sample, SampleFlow &sampleFlow) const |
Executes a BSDF sample query. Respects sidedness policy. | |
void | calcBsdfPdf (BsdfPdfQuery &pdfQuery) const |
Executes a BSDF sample PDF query. Respects sidedness policy. | |
SurfacePhenomena | getAllPhenomena () const |
Get all phenomena that exist in this surface. | |
SurfaceElemental | numElementals () const |
Get number of components this surface contains. | |
Additional Inherited Members | |
Protected Attributes inherited from ph::SurfaceOptics | |
SurfacePhenomena | m_phenomena |
SurfaceElemental | m_numElementals |
Laurent Belcour's layered BSDF model. This is the symmetric model as described in Section 6.2 of the paper [1]. Laurent Belcour's project page: https://belcour.github.io/blog/research/2018/05/05/brdf-realtime-layered.html.
ph::LbLayeredSurface::LbLayeredSurface | ( | const std::vector< math::Spectrum > & | iorNs, |
const std::vector< math::Spectrum > & | iorKs, | ||
const std::vector< real > & | alphas, | ||
const std::vector< real > & | depths, | ||
const std::vector< real > & | gs, | ||
const std::vector< math::Spectrum > & | sigmaAs, | ||
const std::vector< math::Spectrum > & | sigmaSs ) |
|
overridevirtual |
Get the phenomenon of a surface component. One can also setup query for a specific elemental. See BsdfQueryContext
.
Implements ph::SurfaceOptics.
|
inlineoverridevirtual |
Reimplemented from ph::SurfaceOptics.