#include <reflection.h>
Public Member Functions | |
| BRDFToBTDF (BxDF *b) | |
| Spectrum | f (const Vector &wo, const Vector &wi) const |
| Spectrum | Sample_f (const Vector &wo, Vector *wi, float u1, float u2, float *pdf) const |
| Spectrum | rho (const Vector &w, int nSamples, const float *samples) const |
| Spectrum | rho (int nSamples, const float *samples1, const float *samples2) 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 215 of file reflection.h.
| BRDFToBTDF::BRDFToBTDF | ( | BxDF * | b | ) | [inline] |
Definition at line 218 of file reflection.h.
References brdf.
Implements BxDF.
Definition at line 76 of file reflection.cpp.
References brdf, BxDF::f(), and otherHemisphere().
Referenced by Sample_f().
Definition at line 222 of file reflection.h.
References Vector::x, Vector::y, and Vector::z.
Referenced by f(), rho(), and Sample_f().
Reimplemented from BxDF.
Definition at line 312 of file reflection.cpp.
References brdf, and BxDF::Pdf().
| Spectrum BRDFToBTDF::rho | ( | int | nSamples, | |
| const float * | samples1, | |||
| const float * | samples2 | |||
| ) | const [inline, virtual] |
Reimplemented from BxDF.
Definition at line 231 of file reflection.h.
References brdf, and BxDF::rho().
| Spectrum BRDFToBTDF::rho | ( | const Vector & | w, | |
| int | nSamples, | |||
| const float * | samples | |||
| ) | const [inline, virtual] |
Reimplemented from BxDF.
Definition at line 228 of file reflection.h.
References brdf, otherHemisphere(), and BxDF::rho().
| Spectrum BRDFToBTDF::Sample_f | ( | const Vector & | wo, | |
| Vector * | wi, | |||
| float | u1, | |||
| float | u2, | |||
| float * | ||||
| ) | const [virtual] |
Reimplemented from BxDF.
Definition at line 81 of file reflection.cpp.
References brdf, f(), otherHemisphere(), and BxDF::Sample_f().
BxDF* BRDFToBTDF::brdf [private] |
Definition at line 236 of file reflection.h.
Referenced by BRDFToBTDF(), f(), Pdf(), rho(), and Sample_f().
1.6.3