#include <translucent.h>
Public Member Functions | |
Translucent (boost::shared_ptr< Texture< Spectrum > > kd, boost::shared_ptr< Texture< Spectrum > > ks, boost::shared_ptr< Texture< float > > rough, boost::shared_ptr< Texture< Spectrum > > refl, boost::shared_ptr< Texture< Spectrum > > trans, boost::shared_ptr< Texture< float > > i, boost::shared_ptr< Texture< float > > bump) | |
BSDF * | GetBSDF (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 < Spectrum > > | Kd |
boost::shared_ptr< Texture < Spectrum > > | Ks |
boost::shared_ptr< Texture < float > > | roughness |
boost::shared_ptr< Texture < Spectrum > > | reflect |
boost::shared_ptr< Texture < Spectrum > > | transmit |
boost::shared_ptr< Texture < float > > | index |
boost::shared_ptr< Texture < float > > | bumpMap |
Definition at line 31 of file translucent.h.
lux::Translucent::Translucent | ( | boost::shared_ptr< Texture< Spectrum > > | kd, | |
boost::shared_ptr< Texture< Spectrum > > | ks, | |||
boost::shared_ptr< Texture< float > > | rough, | |||
boost::shared_ptr< Texture< Spectrum > > | refl, | |||
boost::shared_ptr< Texture< Spectrum > > | trans, | |||
boost::shared_ptr< Texture< float > > | i, | |||
boost::shared_ptr< Texture< float > > | bump | |||
) | [inline] |
Definition at line 34 of file translucent.h.
References bumpMap, index, Kd, Ks, reflect, roughness, and transmit.
Referenced by CreateMaterial().
Material * Translucent::CreateMaterial | ( | const Transform & | xform, | |
const TextureParams & | mp | |||
) | [static] |
Definition at line 73 of file translucent.cpp.
References bumpMap, lux::TextureParams::GetFloatTexture(), index, Kd, Ks, reflect, roughness, Translucent(), and transmit.
BSDF * Translucent::GetBSDF | ( | const DifferentialGeometry & | dgGeom, | |
const DifferentialGeometry & | dgShading | |||
) | const |
Definition at line 35 of file translucent.cpp.
References BSDF_ALLOC, lux::Material::Bump(), bumpMap, index, Kd, Ks, lux::DifferentialGeometry::nn, lux::r, reflect, roughness, and transmit.
boost::shared_ptr<Texture<float> > lux::Translucent::bumpMap [private] |
Definition at line 60 of file translucent.h.
Referenced by CreateMaterial(), GetBSDF(), and Translucent().
boost::shared_ptr<Texture<float> > lux::Translucent::index [private] |
Definition at line 59 of file translucent.h.
Referenced by CreateMaterial(), GetBSDF(), and Translucent().
boost::shared_ptr<Texture<Spectrum> > lux::Translucent::Kd [private] |
Definition at line 55 of file translucent.h.
Referenced by CreateMaterial(), GetBSDF(), and Translucent().
boost::shared_ptr<Texture<Spectrum> > lux::Translucent::Ks [private] |
Definition at line 55 of file translucent.h.
Referenced by CreateMaterial(), GetBSDF(), and Translucent().
boost::shared_ptr<Texture<Spectrum> > lux::Translucent::reflect [private] |
Definition at line 57 of file translucent.h.
Referenced by CreateMaterial(), GetBSDF(), and Translucent().
boost::shared_ptr<Texture<float> > lux::Translucent::roughness [private] |
Definition at line 56 of file translucent.h.
Referenced by CreateMaterial(), GetBSDF(), and Translucent().
boost::shared_ptr<Texture<Spectrum> > lux::Translucent::transmit [private] |
Definition at line 57 of file translucent.h.
Referenced by CreateMaterial(), GetBSDF(), and Translucent().