#include <clay.h>
Public Member Functions | |
Clay (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 < float > > | bumpMap |
Definition at line 31 of file clay.h.
lux::Clay::Clay | ( | boost::shared_ptr< Texture< float > > | bump | ) | [inline] |
Definition at line 33 of file clay.h.
Referenced by CreateMaterial().
Material * Clay::CreateMaterial | ( | const Transform & | xform, | |
const TextureParams & | mp | |||
) | [static] |
Definition at line 58 of file clay.cpp.
References bumpMap, Clay(), and lux::TextureParams::GetFloatTexture().
BSDF * Clay::GetBSDF | ( | const DifferentialGeometry & | dgGeom, | |
const DifferentialGeometry & | dgShading | |||
) | const |
Definition at line 32 of file clay.cpp.
References lux::BSDF::Add(), BSDF_ALLOC, lux::BSDF_DIFFUSE, lux::BSDF_REFLECTION, lux::Material::Bump(), bumpMap, and lux::DifferentialGeometry::nn.
boost::shared_ptr<Texture<float> > lux::Clay::bumpMap [private] |
Definition at line 38 of file clay.h.
Referenced by CreateMaterial(), and GetBSDF().