#include <metal.h>
Public Member Functions | |
Metal (boost::shared_ptr< SPD > n, boost::shared_ptr< SPD > k, boost::shared_ptr< Texture< float > > u, boost::shared_ptr< Texture< float > > v, boost::shared_ptr< Texture< float > > bump, const CompositingParams &cp) | |
virtual | ~Metal () |
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< SPD > | N |
boost::shared_ptr< SPD > | K |
boost::shared_ptr< Texture < float > > | nu |
boost::shared_ptr< Texture < float > > | nv |
boost::shared_ptr< Texture < float > > | bumpMap |
Definition at line 33 of file metal.h.
Metal::Metal | ( | boost::shared_ptr< SPD > | n, | |
boost::shared_ptr< SPD > | k, | |||
boost::shared_ptr< Texture< float > > | u, | |||
boost::shared_ptr< Texture< float > > | v, | |||
boost::shared_ptr< Texture< float > > | bump, | |||
const CompositingParams & | cp | |||
) |
Definition at line 42 of file metal.cpp.
References bumpMap, lux::Material::compParams, K, N, nu, and nv.
Referenced by CreateMaterial().
Material * Metal::CreateMaterial | ( | const Transform & | xform, | |
const TextureParams & | mp | |||
) | [static] |
Definition at line 361 of file metal.cpp.
References bumpMap, lux::DEFAULT_METAL, lux::Material::FindCompositingParams(), lux::TextureParams::FindString(), lux::TextureParams::GetFloatTexture(), IORFromFile(), IORFromName(), LUX_NOERROR, LUX_WARNING, luxError, and Metal().
BSDF * Metal::GetBSDF | ( | const TsPack * | tspack, | |
const DifferentialGeometry & | dgGeom, | |||
const DifferentialGeometry & | dgShading | |||
) | const [virtual] |
Implements lux::Material.
Definition at line 53 of file metal.cpp.
References BSDF_ALLOC, lux::Material::Bump(), bumpMap, lux::Material::compParams, K, N, lux::DifferentialGeometry::nn, nu, nv, and lux::BSDF::SetCompositingParams().
boost::shared_ptr<Texture<float> > lux::Metal::bumpMap [private] |
Definition at line 50 of file metal.h.
Referenced by CreateMaterial(), GetBSDF(), and Metal().
boost::shared_ptr<SPD > lux::Metal::K [private] |
boost::shared_ptr<SPD > lux::Metal::N [private] |
boost::shared_ptr<Texture<float> > lux::Metal::nu [private] |
boost::shared_ptr<Texture<float> > lux::Metal::nv [private] |