#include <matte.h>
Public Member Functions | |
Matte (boost::shared_ptr< Texture< SWCSpectrum > > kd, boost::shared_ptr< Texture< float > > sig, boost::shared_ptr< Texture< float > > bump, const CompositingParams &cp) | |
virtual | ~Matte () |
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 < float > > | sigma |
boost::shared_ptr< Texture < float > > | bumpMap |
Definition at line 31 of file matte.h.
lux::Matte::Matte | ( | boost::shared_ptr< Texture< SWCSpectrum > > | kd, | |
boost::shared_ptr< Texture< float > > | sig, | |||
boost::shared_ptr< Texture< float > > | bump, | |||
const CompositingParams & | cp | |||
) | [inline] |
Definition at line 34 of file matte.h.
References bumpMap, lux::Material::compParams, Kd, and sigma.
Referenced by CreateMaterial().
Material * Matte::CreateMaterial | ( | const Transform & | xform, | |
const TextureParams & | mp | |||
) | [static] |
Definition at line 58 of file matte.cpp.
References bumpMap, lux::Material::FindCompositingParams(), lux::TextureParams::GetFloatTexture(), lux::TextureParams::GetSWCSpectrumTexture(), Kd, Matte(), and sigma.
BSDF * Matte::GetBSDF | ( | const TsPack * | tspack, | |
const DifferentialGeometry & | dgGeom, | |||
const DifferentialGeometry & | dgShading | |||
) | const [virtual] |
Implements lux::Material.
Definition at line 34 of file matte.cpp.
References BSDF_ALLOC, lux::Material::Bump(), bumpMap, Clamp(), lux::Material::compParams, Kd, lux::DifferentialGeometry::nn, lux::r, lux::BSDF::SetCompositingParams(), and sigma.
boost::shared_ptr<Texture<float> > lux::Matte::bumpMap [private] |
Definition at line 51 of file matte.h.
Referenced by CreateMaterial(), GetBSDF(), and Matte().
boost::shared_ptr<Texture<SWCSpectrum> > lux::Matte::Kd [private] |
Definition at line 50 of file matte.h.
Referenced by CreateMaterial(), GetBSDF(), and Matte().
boost::shared_ptr<Texture<float> > lux::Matte::sigma [private] |
Definition at line 51 of file matte.h.
Referenced by CreateMaterial(), GetBSDF(), and Matte().