#include <reflection.h>
Public Member Functions | |
| Blinn (float e) | |
| float | D (const Vector &wh) const |
| virtual void | Sample_f (const Vector &wi, Vector *sampled_f, float u1, float u2, float *pdf) const |
| virtual float | Pdf (const Vector &wi, const Vector &wo) const |
Private Attributes | |
| float | exponent |
Definition at line 415 of file reflection.h.
| Blinn::Blinn | ( | float | e | ) | [inline] |
Definition at line 417 of file reflection.h.
References exponent.
| float Blinn::D | ( | const Vector & | wh | ) | const [inline, virtual] |
Implements MicrofacetDistribution.
Definition at line 420 of file reflection.h.
References AbsCosTheta(), exponent, and INV_TWOPI.
Implements MicrofacetDistribution.
Definition at line 352 of file reflection.cpp.
References AbsCosTheta(), Dot(), exponent, M_PI, and Normalize().
| void Blinn::Sample_f | ( | const Vector & | wi, | |
| Vector * | sampled_f, | |||
| float | u1, | |||
| float | u2, | |||
| float * | ||||
| ) | const [virtual] |
Implements MicrofacetDistribution.
Definition at line 332 of file reflection.cpp.
References Dot(), exponent, M_PI, SameHemisphere(), and SphericalDirection().
float Blinn::exponent [private] |
Definition at line 427 of file reflection.h.
Referenced by Blinn(), D(), Pdf(), and Sample_f().
1.6.3