Photon Engine 2.0.0-beta
A physically based renderer.
|
Modeling Fresnel effects that occur on interfaces. More...
#include <FresnelEffect.h>
Public Member Functions | |
virtual | ~FresnelEffect ()=default |
virtual math::Spectrum | calcReflectance (real cosThetaIncident) const =0 |
math::Spectrum | calcTransmittance (real cosThetaIncident) const |
Modeling Fresnel effects that occur on interfaces.
The two sides of a interface are called inner and outer sides, where outer side has \( \cos(\theta_{indicent})>0 \) and inner side has \( \cos(\theta_{indicent})<0 \).
|
virtualdefault |
|
pure virtual |
cosThetaIncident | Cosine of the incident angle. |
cosThetaIncident
is signed, so inner and outer sides can be determined. Implemented in ph::ConductorFresnel, ph::DielectricFresnel, ph::ExactConductorFresnel, ph::ExactDielectricFresnel, ph::SchlickApproxConductorFresnel, and ph::SchlickApproxDielectricFresnel.
|
inline |
cosThetaIncident | Cosine of the incident angle. |
cosThetaIncident
is signed, so inner and outer sides can be determined.