#include <orennayar.h>
Public Member Functions | |
| OrenNayar (const SWCSpectrum &reflectance, float sig) | |
| virtual | ~OrenNayar () |
| virtual void | f (const TsPack *tspack, const Vector &wo, const Vector &wi, SWCSpectrum *const f) const |
Private Attributes | |
| SWCSpectrum | R |
| float | A |
| float | B |
Definition at line 33 of file orennayar.h.
| lux::OrenNayar::OrenNayar | ( | const SWCSpectrum & | reflectance, | |
| float | sig | |||
| ) | [inline] |
Definition at line 36 of file orennayar.h.
| virtual lux::OrenNayar::~OrenNayar | ( | ) | [inline, virtual] |
Definition at line 44 of file orennayar.h.
| void OrenNayar::f | ( | const TsPack * | tspack, | |
| const Vector & | wo, | |||
| const Vector & | wi, | |||
| SWCSpectrum *const | f | |||
| ) | const [virtual] |
Evaluates the BxDF. Accumulates the result in the f parameter.
Implements lux::BxDF.
Definition at line 30 of file orennayar.cpp.
References A, lux::SWCSpectrum::AddWeighted(), B, lux::CosPhi(), lux::CosTheta(), INV_PI, cimg_library::cimg::max(), R, lux::SinPhi(), and lux::SinTheta().
float lux::OrenNayar::A [private] |
Definition at line 49 of file orennayar.h.
Referenced by f(), and OrenNayar().
float lux::OrenNayar::B [private] |
Definition at line 49 of file orennayar.h.
Referenced by f(), and OrenNayar().
SWCSpectrum lux::OrenNayar::R [private] |
Definition at line 48 of file orennayar.h.
Referenced by f().
1.6.2-20100208