Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::SchlickApproxConductorFresnel Class Reference

Conductor-dielectric interface Fresnel effect. More...

#include <SchlickApproxConductorFresnel.h>

Inheritance diagram for ph::SchlickApproxConductorFresnel:
ph::ConductorFresnel ph::FresnelEffect

Public Member Functions

 SchlickApproxConductorFresnel (real iorOuter, const math::Spectrum &iorInnerN, const math::Spectrum &iorInnerK)
 
 SchlickApproxConductorFresnel (const math::Spectrum &f0)
 
math::Spectrum calcReflectance (real cosThetaIncident) const override
 
- Public Member Functions inherited from ph::ConductorFresnel
 ConductorFresnel ()=default
 
- Public Member Functions inherited from ph::FresnelEffect
virtual ~FresnelEffect ()=default
 
math::Spectrum calcTransmittance (real cosThetaIncident) const
 

Detailed Description

Conductor-dielectric interface Fresnel effect.

The formulae used are approximations made by Schlick [14].

Constructor & Destructor Documentation

◆ SchlickApproxConductorFresnel() [1/2]

ph::SchlickApproxConductorFresnel::SchlickApproxConductorFresnel ( real iorOuter,
const math::Spectrum & iorInnerN,
const math::Spectrum & iorInnerK )

◆ SchlickApproxConductorFresnel() [2/2]

ph::SchlickApproxConductorFresnel::SchlickApproxConductorFresnel ( const math::Spectrum & f0)
explicit

Member Function Documentation

◆ calcReflectance()

math::Spectrum ph::SchlickApproxConductorFresnel::calcReflectance ( real cosThetaIncident) const
overridevirtual
Parameters
cosThetaIncidentCosine of the incident angle.
Returns
The reflectance of the interface on the specified angle.
Note
cosThetaIncident is signed, so inner and outer sides can be determined.

Implements ph::ConductorFresnel.


The documentation for this class was generated from the following files: