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