Public Member Functions | |
PerspectiveBxDF (bool lens, float FD, float f, const Point &pL, const Transform &R2C, float xW, float yH) | |
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 &wi, const Vector &wo) const |
Private Attributes | |
bool | hasLens |
float | FocalDistance |
float | fov |
float | xWidth |
float | yHeight |
Point | p |
const Transform & | RasterToCamera |
Definition at line 37 of file perspective.cpp.
PerspectiveBxDF::PerspectiveBxDF | ( | bool | lens, | |
float | FD, | |||
float | f, | |||
const Point & | pL, | |||
const Transform & | R2C, | |||
float | xW, | |||
float | yH | |||
) | [inline] |
Definition at line 40 of file perspective.cpp.
SWCSpectrum PerspectiveBxDF::f | ( | const Vector & | wo, | |
const Vector & | wi | |||
) | const [inline, virtual] |
Implements lux::BxDF.
Definition at line 41 of file perspective.cpp.
References lux::Vector::x, lux::Vector::y, and lux::Vector::z.
Referenced by Pdf(), and Sample_f().
Reimplemented from lux::BxDF.
Definition at line 57 of file perspective.cpp.
References f(), FocalDistance, fov, hasLens, p, lux::UniformConePdf(), lux::Vector::x, lux::Point::x, lux::Point::y, lux::Vector::y, lux::Point::z, and lux::Vector::z.
SWCSpectrum PerspectiveBxDF::Sample_f | ( | const Vector & | wo, | |
Vector * | wi, | |||
float | u1, | |||
float | u2, | |||
float * | pdf, | |||
float * | pdfBack = NULL | |||
) | const [inline, virtual] |
Reimplemented from lux::BxDF.
Definition at line 42 of file perspective.cpp.
References f(), FocalDistance, fov, hasLens, lux::Normalize(), p, RasterToCamera, lux::UniformConePdf(), lux::Point::x, xWidth, lux::Vector::y, lux::Point::y, yHeight, lux::Vector::z, and lux::Point::z.
float PerspectiveBxDF::FocalDistance [private] |
Definition at line 76 of file perspective.cpp.
Referenced by Pdf(), and Sample_f().
float PerspectiveBxDF::fov [private] |
Definition at line 76 of file perspective.cpp.
Referenced by Pdf(), and Sample_f().
bool PerspectiveBxDF::hasLens [private] |
Definition at line 75 of file perspective.cpp.
Referenced by Pdf(), and Sample_f().
Point PerspectiveBxDF::p [private] |
Definition at line 77 of file perspective.cpp.
Referenced by Pdf(), and Sample_f().
const Transform& PerspectiveBxDF::RasterToCamera [private] |
Definition at line 78 of file perspective.cpp.
Referenced by Sample_f().
float PerspectiveBxDF::xWidth [private] |
Definition at line 76 of file perspective.cpp.
Referenced by Sample_f().
float PerspectiveBxDF::yHeight [private] |
Definition at line 76 of file perspective.cpp.
Referenced by Sample_f().