#include <reflection.h>
Public Member Functions | |
SpecularReflection (const Spectrum &r, Fresnel *f) | |
Spectrum | f (const Vector &, const Vector &) const |
Spectrum | Sample_f (const Vector &wo, Vector *wi, float u1, float u2, float *pdf) const |
float | Pdf (const Vector &wo, const Vector &wi) const |
Private Attributes | |
Spectrum | R |
Fresnel * | fresnel |
Definition at line 299 of file reflection.h.
Definition at line 302 of file reflection.h.
Implements BxDF.
Definition at line 306 of file reflection.h.
Reimplemented from BxDF.
Definition at line 311 of file reflection.h.
Spectrum SpecularReflection::Sample_f | ( | const Vector & | wo, | |
Vector * | wi, | |||
float | u1, | |||
float | u2, | |||
float * | ||||
) | const [virtual] |
Reimplemented from BxDF.
Definition at line 130 of file reflection.cpp.
References AbsCosTheta(), CosTheta(), Fresnel::Evaluate(), fresnel, R, Vector::x, Vector::y, and Vector::z.
Fresnel* SpecularReflection::fresnel [private] |
Definition at line 317 of file reflection.h.
Referenced by Sample_f().
Spectrum SpecularReflection::R [private] |
Definition at line 316 of file reflection.h.
Referenced by Sample_f().