#include <shinymetal.h>
Public Member Functions | |
ShinyMetal (boost::shared_ptr< Texture< Spectrum > > ks, boost::shared_ptr< Texture< float > > u, boost::shared_ptr< Texture< float > > v, boost::shared_ptr< Texture< Spectrum > > kr, boost::shared_ptr< Texture< float > > bump) | |
BSDF * | GetBSDF (const DifferentialGeometry &dgGeom, const DifferentialGeometry &dgShading, float u) const |
Static Public Member Functions | |
static Material * | CreateMaterial (const Transform &xform, const TextureParams &mp) |
Private Attributes | |
boost::shared_ptr< Texture < Spectrum > > | Ks |
boost::shared_ptr< Texture < Spectrum > > | Kr |
boost::shared_ptr< Texture < float > > | nu |
boost::shared_ptr< Texture < float > > | nv |
boost::shared_ptr< Texture < float > > | bumpMap |
Definition at line 31 of file shinymetal.h.
lux::ShinyMetal::ShinyMetal | ( | boost::shared_ptr< Texture< Spectrum > > | ks, | |
boost::shared_ptr< Texture< float > > | u, | |||
boost::shared_ptr< Texture< float > > | v, | |||
boost::shared_ptr< Texture< Spectrum > > | kr, | |||
boost::shared_ptr< Texture< float > > | bump | |||
) | [inline] |
Definition at line 34 of file shinymetal.h.
References bumpMap, Kr, Ks, nu, and nv.
Referenced by CreateMaterial().
Material * ShinyMetal::CreateMaterial | ( | const Transform & | xform, | |
const TextureParams & | mp | |||
) | [static] |
Definition at line 63 of file shinymetal.cpp.
References bumpMap, lux::TextureParams::GetFloatTexture(), lux::TextureParams::GetSpectrumTexture(), Kr, Ks, and ShinyMetal().
BSDF * ShinyMetal::GetBSDF | ( | const DifferentialGeometry & | dgGeom, | |
const DifferentialGeometry & | dgShading, | |||
float | u | |||
) | const [virtual] |
Implements lux::Material.
Definition at line 36 of file shinymetal.cpp.
References lux::BSDF::Add(), BSDF_ALLOC, lux::Material::Bump(), bumpMap, lux::FresnelApproxEta(), Kr, Ks, lux::DifferentialGeometry::nn, nu, and nv.
boost::shared_ptr<Texture<float> > lux::ShinyMetal::bumpMap [private] |
Definition at line 50 of file shinymetal.h.
Referenced by CreateMaterial(), GetBSDF(), and ShinyMetal().
boost::shared_ptr<Texture<Spectrum> > lux::ShinyMetal::Kr [private] |
Definition at line 48 of file shinymetal.h.
Referenced by CreateMaterial(), GetBSDF(), and ShinyMetal().
boost::shared_ptr<Texture<Spectrum> > lux::ShinyMetal::Ks [private] |
Definition at line 48 of file shinymetal.h.
Referenced by CreateMaterial(), GetBSDF(), and ShinyMetal().
boost::shared_ptr<Texture<float> > lux::ShinyMetal::nu [private] |
Definition at line 49 of file shinymetal.h.
Referenced by GetBSDF(), and ShinyMetal().
boost::shared_ptr<Texture<float> > lux::ShinyMetal::nv [private] |
Definition at line 49 of file shinymetal.h.
Referenced by GetBSDF(), and ShinyMetal().