#include <bxdf.h>
Public Member Functions | |
BRDFToBTDF (BxDF *b) | |
SWCSpectrum | rho (const Vector &w, int nSamples, float *samples) const |
SWCSpectrum | rho (int nSamples, float *samples) const |
SWCSpectrum | f (const Vector &wo, const Vector &wi) const |
SWCSpectrum | Sample_f (const Vector &wo, Vector *wi, float u1, float u2, float *pdf, float *pdfBack=NULL) const |
float | Pdf (const Vector &wo, const Vector &wi) const |
Static Public Member Functions | |
static Vector | otherHemisphere (const Vector &w) |
Private Attributes | |
BxDF * | brdf |
Definition at line 149 of file bxdf.h.
lux::BRDFToBTDF::BRDFToBTDF | ( | BxDF * | b | ) | [inline] |
SWCSpectrum BRDFToBTDF::f | ( | const Vector & | wo, | |
const Vector & | wi | |||
) | const [virtual] |
Implements lux::BxDF.
Definition at line 34 of file bxdf.cpp.
References brdf, lux::BxDF::f(), and otherHemisphere().
Referenced by Sample_f().
Definition at line 157 of file bxdf.h.
References lux::Vector::x, lux::Vector::y, and lux::Vector::z.
Referenced by f(), Pdf(), rho(), and Sample_f().
Reimplemented from lux::BxDF.
Definition at line 59 of file bxdf.cpp.
References brdf, otherHemisphere(), and lux::BxDF::Pdf().
SWCSpectrum lux::BRDFToBTDF::rho | ( | int | nSamples, | |
float * | samples | |||
) | const [inline, virtual] |
Reimplemented from lux::BxDF.
Definition at line 164 of file bxdf.h.
References brdf, and lux::BxDF::rho().
SWCSpectrum lux::BRDFToBTDF::rho | ( | const Vector & | w, | |
int | nSamples, | |||
float * | samples | |||
) | const [inline, virtual] |
Reimplemented from lux::BxDF.
Definition at line 160 of file bxdf.h.
References brdf, otherHemisphere(), and lux::BxDF::rho().
SWCSpectrum BRDFToBTDF::Sample_f | ( | const Vector & | wo, | |
Vector * | wi, | |||
float | u1, | |||
float | u2, | |||
float * | pdf, | |||
float * | pdfBack = NULL | |||
) | const [virtual] |
Reimplemented from lux::BxDF.
Definition at line 38 of file bxdf.cpp.
References brdf, f(), otherHemisphere(), and lux::BxDF::Sample_f().
BxDF* lux::BRDFToBTDF::brdf [private] |
Definition at line 172 of file bxdf.h.
Referenced by BRDFToBTDF(), f(), Pdf(), rho(), and Sample_f().