#include <shinymetal.h>
Public Member Functions | |
ShinyMetal (boost::shared_ptr< Texture< SWCSpectrum > > ks, boost::shared_ptr< Texture< float > > u, boost::shared_ptr< Texture< float > > v, boost::shared_ptr< Texture< float > > flm, boost::shared_ptr< Texture< float > > flmindex, boost::shared_ptr< Texture< SWCSpectrum > > kr, boost::shared_ptr< Texture< float > > bump, const CompositingParams &cp) | |
virtual | ~ShinyMetal () |
virtual BSDF * | GetBSDF (const TsPack *tspack, const DifferentialGeometry &dgGeom, const DifferentialGeometry &dgShading) const |
Static Public Member Functions | |
static Material * | CreateMaterial (const Transform &xform, const TextureParams &mp) |
Private Attributes | |
boost::shared_ptr< Texture < SWCSpectrum > > | Ks |
boost::shared_ptr< Texture < SWCSpectrum > > | Kr |
boost::shared_ptr< Texture < float > > | nu |
boost::shared_ptr< Texture < float > > | nv |
boost::shared_ptr< Texture < float > > | film |
boost::shared_ptr< Texture < float > > | filmindex |
boost::shared_ptr< Texture < float > > | bumpMap |
Definition at line 31 of file shinymetal.h.
lux::ShinyMetal::ShinyMetal | ( | boost::shared_ptr< Texture< SWCSpectrum > > | ks, | |
boost::shared_ptr< Texture< float > > | u, | |||
boost::shared_ptr< Texture< float > > | v, | |||
boost::shared_ptr< Texture< float > > | flm, | |||
boost::shared_ptr< Texture< float > > | flmindex, | |||
boost::shared_ptr< Texture< SWCSpectrum > > | kr, | |||
boost::shared_ptr< Texture< float > > | bump, | |||
const CompositingParams & | cp | |||
) | [inline] |
Definition at line 34 of file shinymetal.h.
References bumpMap, lux::Material::compParams, film, filmindex, Kr, Ks, nu, and nv.
Referenced by CreateMaterial().
virtual lux::ShinyMetal::~ShinyMetal | ( | ) | [inline, virtual] |
Definition at line 48 of file shinymetal.h.
Material * ShinyMetal::CreateMaterial | ( | const Transform & | xform, | |
const TextureParams & | mp | |||
) | [static] |
Definition at line 70 of file shinymetal.cpp.
References bumpMap, film, filmindex, lux::Material::FindCompositingParams(), lux::TextureParams::GetFloatTexture(), lux::TextureParams::GetSWCSpectrumTexture(), Kr, Ks, and ShinyMetal().
BSDF * ShinyMetal::GetBSDF | ( | const TsPack * | tspack, | |
const DifferentialGeometry & | dgGeom, | |||
const DifferentialGeometry & | dgShading | |||
) | const [virtual] |
Implements lux::Material.
Definition at line 37 of file shinymetal.cpp.
References lux::MultiBSDF::Add(), BSDF_ALLOC, lux::Material::Bump(), bumpMap, lux::Material::compParams, film, filmindex, lux::FresnelApproxEta(), lux::FresnelApproxK(), Kr, Ks, lux::DifferentialGeometry::nn, nu, nv, and lux::BSDF::SetCompositingParams().
boost::shared_ptr<Texture<float> > lux::ShinyMetal::bumpMap [private] |
Definition at line 57 of file shinymetal.h.
Referenced by CreateMaterial(), GetBSDF(), and ShinyMetal().
boost::shared_ptr<Texture<float> > lux::ShinyMetal::film [private] |
Definition at line 56 of file shinymetal.h.
Referenced by CreateMaterial(), GetBSDF(), and ShinyMetal().
boost::shared_ptr<Texture<float> > lux::ShinyMetal::filmindex [private] |
Definition at line 56 of file shinymetal.h.
Referenced by CreateMaterial(), GetBSDF(), and ShinyMetal().
boost::shared_ptr<Texture<SWCSpectrum> > lux::ShinyMetal::Kr [private] |
Definition at line 54 of file shinymetal.h.
Referenced by CreateMaterial(), GetBSDF(), and ShinyMetal().
boost::shared_ptr<Texture<SWCSpectrum> > lux::ShinyMetal::Ks [private] |
Definition at line 54 of file shinymetal.h.
Referenced by CreateMaterial(), GetBSDF(), and ShinyMetal().
boost::shared_ptr<Texture<float> > lux::ShinyMetal::nu [private] |
Definition at line 55 of file shinymetal.h.
Referenced by GetBSDF(), and ShinyMetal().
boost::shared_ptr<Texture<float> > lux::ShinyMetal::nv [private] |
Definition at line 55 of file shinymetal.h.
Referenced by GetBSDF(), and ShinyMetal().