#include <plastic.h>

Public Member Functions | |
| Plastic (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 plastic.h.
| Material * Plastic::CreateMaterial | ( | const Transform & | xform, | |
| const TextureParams & | mp | |||
| ) | [static] |
Definition at line 77 of file plastic.cpp.
References bumpMap, lux::TextureParams::GetFloatTexture(), lux::TextureParams::GetSpectrumTexture(), Kd, Ks, and Plastic().
Referenced by lux::MakeMaterial().
| BSDF * Plastic::GetBSDF | ( | const DifferentialGeometry & | dgGeom, | |
| const DifferentialGeometry & | dgShading, | |||
| float | u | |||
| ) | const [virtual] |
Implements lux::Material.
Definition at line 36 of file plastic.cpp.
References lux::BSDF::Add(), BSDF_ALLOC, lux::Material::Bump(), bumpMap, COLOR_SAMPLES, Kd, Ks, lux::DifferentialGeometry::nn, nu, and nv.
boost::shared_ptr<Texture<float> > lux::Plastic::bumpMap [private] |
boost::shared_ptr<Texture<Spectrum> > lux::Plastic::Kd [private] |
boost::shared_ptr<Texture<Spectrum> > lux::Plastic::Ks [private] |
boost::shared_ptr<Texture<float> > lux::Plastic::nu [private] |
boost::shared_ptr<Texture<float> > lux::Plastic::nv [private] |
1.5.9