#include <glossy.h>
Public Member Functions | |
Glossy (boost::shared_ptr< Texture< SWCSpectrum > > kd, boost::shared_ptr< Texture< SWCSpectrum > > ks, boost::shared_ptr< Texture< SWCSpectrum > > ka, boost::shared_ptr< Texture< float > > i, boost::shared_ptr< Texture< float > > d, boost::shared_ptr< Texture< float > > u, boost::shared_ptr< Texture< float > > v, boost::shared_ptr< Texture< float > > bump, const CompositingParams &cp) | |
virtual | ~Glossy () |
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 > > | Kd |
boost::shared_ptr< Texture < SWCSpectrum > > | Ks |
boost::shared_ptr< Texture < SWCSpectrum > > | Ka |
boost::shared_ptr< Texture < float > > | depth |
boost::shared_ptr< Texture < float > > | index |
boost::shared_ptr< Texture < float > > | nu |
boost::shared_ptr< Texture < float > > | nv |
boost::shared_ptr< Texture < float > > | bumpMap |
Definition at line 31 of file glossy.h.
lux::Glossy::Glossy | ( | boost::shared_ptr< Texture< SWCSpectrum > > | kd, | |
boost::shared_ptr< Texture< SWCSpectrum > > | ks, | |||
boost::shared_ptr< Texture< SWCSpectrum > > | ka, | |||
boost::shared_ptr< Texture< float > > | i, | |||
boost::shared_ptr< Texture< float > > | d, | |||
boost::shared_ptr< Texture< float > > | u, | |||
boost::shared_ptr< Texture< float > > | v, | |||
boost::shared_ptr< Texture< float > > | bump, | |||
const CompositingParams & | cp | |||
) | [inline] |
Material * Glossy::CreateMaterial | ( | const Transform & | xform, | |
const TextureParams & | mp | |||
) | [static] |
Definition at line 72 of file glossy.cpp.
References bumpMap, lux::Material::FindCompositingParams(), lux::TextureParams::GetFloatTexture(), lux::TextureParams::GetSWCSpectrumTexture(), Glossy(), Ka, Kd, and Ks.
BSDF * Glossy::GetBSDF | ( | const TsPack * | tspack, | |
const DifferentialGeometry & | dgGeom, | |||
const DifferentialGeometry & | dgShading | |||
) | const [virtual] |
Implements lux::Material.
Definition at line 37 of file glossy.cpp.
References BSDF_ALLOC, lux::Material::Bump(), bumpMap, lux::SWCSpectrum::Clamp(), lux::Material::compParams, depth, index, Ka, Kd, Ks, lux::DifferentialGeometry::nn, nu, nv, and lux::BSDF::SetCompositingParams().
boost::shared_ptr<Texture<float> > lux::Glossy::bumpMap [private] |
Definition at line 57 of file glossy.h.
Referenced by CreateMaterial(), GetBSDF(), and Glossy().
boost::shared_ptr<Texture<float> > lux::Glossy::depth [private] |
boost::shared_ptr<Texture<float> > lux::Glossy::index [private] |
boost::shared_ptr<Texture<SWCSpectrum> > lux::Glossy::Ka [private] |
Definition at line 54 of file glossy.h.
Referenced by CreateMaterial(), GetBSDF(), and Glossy().
boost::shared_ptr<Texture<SWCSpectrum> > lux::Glossy::Kd [private] |
Definition at line 54 of file glossy.h.
Referenced by CreateMaterial(), GetBSDF(), and Glossy().
boost::shared_ptr<Texture<SWCSpectrum> > lux::Glossy::Ks [private] |
Definition at line 54 of file glossy.h.
Referenced by CreateMaterial(), GetBSDF(), and Glossy().
boost::shared_ptr<Texture<float> > lux::Glossy::nu [private] |
boost::shared_ptr<Texture<float> > lux::Glossy::nv [private] |