#include <carpaint.h>
Public Member Functions | |
CarPaint (boost::shared_ptr< Texture< Spectrum > > kd, boost::shared_ptr< Texture< Spectrum > > ks1, boost::shared_ptr< Texture< Spectrum > > ks2, boost::shared_ptr< Texture< Spectrum > > ks3, boost::shared_ptr< Texture< float > > r1, boost::shared_ptr< Texture< float > > r2, boost::shared_ptr< Texture< float > > r3, boost::shared_ptr< Texture< float > > m1, boost::shared_ptr< Texture< float > > m2, boost::shared_ptr< Texture< float > > m3, 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 > > | Ks1 |
boost::shared_ptr< Texture < Spectrum > > | Ks2 |
boost::shared_ptr< Texture < Spectrum > > | Ks3 |
boost::shared_ptr< Texture < float > > | R1 |
boost::shared_ptr< Texture < float > > | R2 |
boost::shared_ptr< Texture < float > > | R3 |
boost::shared_ptr< Texture < float > > | M1 |
boost::shared_ptr< Texture < float > > | M2 |
boost::shared_ptr< Texture < float > > | M3 |
boost::shared_ptr< Texture < float > > | bumpMap |
Definition at line 32 of file carpaint.h.
CarPaint::CarPaint | ( | boost::shared_ptr< Texture< Spectrum > > | kd, | |
boost::shared_ptr< Texture< Spectrum > > | ks1, | |||
boost::shared_ptr< Texture< Spectrum > > | ks2, | |||
boost::shared_ptr< Texture< Spectrum > > | ks3, | |||
boost::shared_ptr< Texture< float > > | r1, | |||
boost::shared_ptr< Texture< float > > | r2, | |||
boost::shared_ptr< Texture< float > > | r3, | |||
boost::shared_ptr< Texture< float > > | m1, | |||
boost::shared_ptr< Texture< float > > | m2, | |||
boost::shared_ptr< Texture< float > > | m3, | |||
boost::shared_ptr< Texture< float > > | bump | |||
) |
Material * CarPaint::CreateMaterial | ( | const Transform & | xform, | |
const TextureParams & | mp | |||
) | [static] |
Definition at line 171 of file carpaint.cpp.
References bumpMap, CarPaint(), lux::carpaintdata, DataFromName(), lux::TextureParams::FindString(), lux::TextureParams::GetFloatTexture(), lux::TextureParams::GetSpectrumTexture(), Kd, lux::CarPaintData::kd, Ks1, lux::CarPaintData::ks1, Ks2, lux::CarPaintData::ks2, Ks3, lux::CarPaintData::ks3, M1, lux::CarPaintData::m1, M2, lux::CarPaintData::m2, M3, lux::CarPaintData::m3, R1, lux::CarPaintData::r1, R2, lux::CarPaintData::r2, R3, and lux::CarPaintData::r3.
Referenced by lux::MakeMaterial().
BSDF * CarPaint::GetBSDF | ( | const DifferentialGeometry & | dgGeom, | |
const DifferentialGeometry & | dgShading, | |||
float | u | |||
) | const [virtual] |
Implements lux::Material.
Definition at line 56 of file carpaint.cpp.
References lux::BSDF::Add(), lux::BSDF::Alloc(), BSDF_ALLOC, lux::Material::Bump(), bumpMap, Clamp(), Kd, Ks1, Ks2, Ks3, M1, M2, M3, M_PI, lux::DifferentialGeometry::nn, R1, R2, and R3.
boost::shared_ptr<Texture<float> > lux::CarPaint::bumpMap [private] |
Definition at line 48 of file carpaint.h.
Referenced by CarPaint(), CreateMaterial(), and GetBSDF().
boost::shared_ptr<Texture<Spectrum> > lux::CarPaint::Kd [private] |
Definition at line 46 of file carpaint.h.
Referenced by CarPaint(), CreateMaterial(), and GetBSDF().
boost::shared_ptr<Texture<Spectrum> > lux::CarPaint::Ks1 [private] |
Definition at line 46 of file carpaint.h.
Referenced by CarPaint(), CreateMaterial(), and GetBSDF().
boost::shared_ptr<Texture<Spectrum> > lux::CarPaint::Ks2 [private] |
Definition at line 46 of file carpaint.h.
Referenced by CarPaint(), CreateMaterial(), and GetBSDF().
boost::shared_ptr<Texture<Spectrum> > lux::CarPaint::Ks3 [private] |
Definition at line 46 of file carpaint.h.
Referenced by CarPaint(), CreateMaterial(), and GetBSDF().
boost::shared_ptr<Texture<float> > lux::CarPaint::M1 [private] |
Definition at line 47 of file carpaint.h.
Referenced by CarPaint(), CreateMaterial(), and GetBSDF().
boost::shared_ptr<Texture<float> > lux::CarPaint::M2 [private] |
Definition at line 47 of file carpaint.h.
Referenced by CarPaint(), CreateMaterial(), and GetBSDF().
boost::shared_ptr<Texture<float> > lux::CarPaint::M3 [private] |
Definition at line 47 of file carpaint.h.
Referenced by CarPaint(), CreateMaterial(), and GetBSDF().
boost::shared_ptr<Texture<float> > lux::CarPaint::R1 [private] |
Definition at line 47 of file carpaint.h.
Referenced by CarPaint(), CreateMaterial(), and GetBSDF().
boost::shared_ptr<Texture<float> > lux::CarPaint::R2 [private] |
Definition at line 47 of file carpaint.h.
Referenced by CarPaint(), CreateMaterial(), and GetBSDF().
boost::shared_ptr<Texture<float> > lux::CarPaint::R3 [private] |
Definition at line 47 of file carpaint.h.
Referenced by CarPaint(), CreateMaterial(), and GetBSDF().