#include <Phong.h>
Public Member Functions | |
Phong (const RGBColor &Kd, const RGBColor &Ks, const float &e) | |
virtual | ~Phong () |
virtual RGBColor | eval (const Vec3D &wOut, const Vec3D &wInc, const Vec3D &normal) const |
virtual RGBColor | evalDiffuse (const Vec3D &wOut, const Vec3D &wInc, const Vec3D &normal) const |
virtual RGBColor | evalSpecular (const Vec3D &wOut, const Vec3D &wInc, const Vec3D &normal) const |
float | pdf (const Vec3D &wOut, const Vec3D &wInc, const Vec3D &normal) const |
virtual bool | specular () const |
virtual bool | glossy () const |
virtual bool | diffuse () const |
virtual bool | fresnel () const |
Private Attributes | |
float | n |
Definition at line 14 of file Phong.h.
RGBColor rcrt::Phong::eval | ( | const Vec3D & | wOut, | |
const Vec3D & | wInc, | |||
const Vec3D & | normal | |||
) | const [virtual] |
Implements rcrt::BXDF.
Definition at line 17 of file Phong.cpp.
References evalSpecular(), and rcrt::BXDF::kd.
RGBColor rcrt::Phong::evalSpecular | ( | const Vec3D & | wOut, | |
const Vec3D & | wInc, | |||
const Vec3D & | normal | |||
) | const [virtual] |
Implements rcrt::BXDF.
Definition at line 27 of file Phong.cpp.
References rcrt::BXDF::ks, n, and rcrt::Vec3D::reflect().
Referenced by eval().
bool rcrt::Phong::specular | ( | ) | const [virtual] |
bool rcrt::Phong::glossy | ( | ) | const [virtual] |
bool rcrt::Phong::diffuse | ( | ) | const [virtual] |
bool rcrt::Phong::fresnel | ( | ) | const [virtual] |
float rcrt::Phong::n [private] |