#include <substrate.h>
Public Member Functions | |
| Substrate (boost::shared_ptr< Texture< Spectrum > > kd, boost::shared_ptr< Texture< Spectrum > > ks, 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 < Spectrum > > | Kd |
| boost::shared_ptr< Texture < Spectrum > > | Ks |
| boost::shared_ptr< Texture < float > > | nu |
| boost::shared_ptr< Texture < float > > | nv |
| boost::shared_ptr< Texture < float > > | bumpMap |
Definition at line 31 of file substrate.h.
| lux::Substrate::Substrate | ( | boost::shared_ptr< Texture< Spectrum > > | kd, | |
| boost::shared_ptr< Texture< Spectrum > > | ks, | |||
| boost::shared_ptr< Texture< float > > | u, | |||
| boost::shared_ptr< Texture< float > > | v, | |||
| boost::shared_ptr< Texture< float > > | bump | |||
| ) | [inline] |
Definition at line 34 of file substrate.h.
References bumpMap, Kd, Ks, nu, and nv.
Referenced by CreateMaterial().
| Material * Substrate::CreateMaterial | ( | const Transform & | xform, | |
| const TextureParams & | mp | |||
| ) | [static] |
Definition at line 56 of file substrate.cpp.
References bumpMap, lux::TextureParams::GetFloatTexture(), lux::TextureParams::GetSpectrumTexture(), Kd, Ks, and Substrate().
| BSDF * Substrate::GetBSDF | ( | const DifferentialGeometry & | dgGeom, | |
| const DifferentialGeometry & | dgShading, | |||
| float | u | |||
| ) | const [virtual] |
Implements lux::Material.
Definition at line 34 of file substrate.cpp.
References lux::BSDF::Add(), BSDF_ALLOC, lux::Material::Bump(), bumpMap, Kd, Ks, lux::DifferentialGeometry::nn, nu, and nv.
boost::shared_ptr<Texture<float> > lux::Substrate::bumpMap [private] |
Definition at line 50 of file substrate.h.
Referenced by CreateMaterial(), GetBSDF(), and Substrate().
boost::shared_ptr<Texture<Spectrum> > lux::Substrate::Kd [private] |
Definition at line 48 of file substrate.h.
Referenced by CreateMaterial(), GetBSDF(), and Substrate().
boost::shared_ptr<Texture<Spectrum> > lux::Substrate::Ks [private] |
Definition at line 48 of file substrate.h.
Referenced by CreateMaterial(), GetBSDF(), and Substrate().
boost::shared_ptr<Texture<float> > lux::Substrate::nu [private] |
Definition at line 49 of file substrate.h.
Referenced by GetBSDF(), and Substrate().
boost::shared_ptr<Texture<float> > lux::Substrate::nv [private] |
Definition at line 49 of file substrate.h.
Referenced by GetBSDF(), and Substrate().
1.6.1