lux::Metal Class Reference

#include <metal.h>

Inheritance diagram for lux::Metal:

lux::Material

List of all members.

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)
BSDFGetBSDF (const DifferentialGeometry &dgGeom, const DifferentialGeometry &dgShading, float u) const

Static Public Member Functions

static MaterialCreateMaterial (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


Detailed Description

Definition at line 33 of file metal.h.


Constructor & Destructor Documentation

Metal::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 
)

Definition at line 40 of file metal.cpp.

References bumpMap, K, N, nu, and nv.

Referenced by CreateMaterial().


Member Function Documentation

Material * Metal::CreateMaterial ( const Transform xform,
const TextureParams mp 
) [static]

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.


Member Data Documentation

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]

Definition at line 46 of file metal.h.

Referenced by GetBSDF(), and Metal().

boost::shared_ptr<Texture<SPD*> > lux::Metal::N [private]

Definition at line 46 of file metal.h.

Referenced by GetBSDF(), and Metal().

boost::shared_ptr<Texture<float> > lux::Metal::nu [private]

Definition at line 47 of file metal.h.

Referenced by GetBSDF(), and Metal().

boost::shared_ptr<Texture<float> > lux::Metal::nv [private]

Definition at line 47 of file metal.h.

Referenced by GetBSDF(), and Metal().


The documentation for this class was generated from the following files:

Generated on Fri Jul 24 11:46:58 2009 for lux by  doxygen 1.5.9