#include <carpaint.h>
Public Member Functions | |
CarPaint (boost::shared_ptr< Texture< SWCSpectrum > > kd, boost::shared_ptr< Texture< SWCSpectrum > > ka, boost::shared_ptr< Texture< float > > d, boost::shared_ptr< Texture< SWCSpectrum > > ks1, boost::shared_ptr< Texture< SWCSpectrum > > ks2, boost::shared_ptr< Texture< SWCSpectrum > > 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, const CompositingParams &cp) | |
virtual | ~CarPaint () |
virtual BSDF * | GetBSDF (const TsPack *tspack, const DifferentialGeometry &dgGeom, const DifferentialGeometry &dgShading) const |
Static Public Member Functions | |
static Material * | CreateMaterial (const Transform &xform, const TextureParams &mp) |
Private Attributes | |
boost::shared_ptr< Texture < SWCSpectrum > > | Kd |
boost::shared_ptr< Texture < SWCSpectrum > > | Ka |
boost::shared_ptr< Texture < SWCSpectrum > > | Ks1 |
boost::shared_ptr< Texture < SWCSpectrum > > | Ks2 |
boost::shared_ptr< Texture < SWCSpectrum > > | Ks3 |
boost::shared_ptr< Texture < float > > | depth |
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< SWCSpectrum > > | kd, | |
boost::shared_ptr< Texture< SWCSpectrum > > | ka, | |||
boost::shared_ptr< Texture< float > > | d, | |||
boost::shared_ptr< Texture< SWCSpectrum > > | ks1, | |||
boost::shared_ptr< Texture< SWCSpectrum > > | ks2, | |||
boost::shared_ptr< Texture< SWCSpectrum > > | 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, | |||
const CompositingParams & | cp | |||
) |
virtual lux::CarPaint::~CarPaint | ( | ) | [inline, virtual] |
Definition at line 42 of file carpaint.h.
Material * CarPaint::CreateMaterial | ( | const Transform & | xform, | |
const TextureParams & | mp | |||
) | [static] |
Definition at line 181 of file carpaint.cpp.
References bumpMap, CarPaint(), lux::carpaintdata, DataFromName(), lux::Material::FindCompositingParams(), lux::TextureParams::FindString(), lux::TextureParams::GetFloatTexture(), lux::TextureParams::GetSWCSpectrumTexture(), Ka, 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.
BSDF * CarPaint::GetBSDF | ( | const TsPack * | tspack, | |
const DifferentialGeometry & | dgGeom, | |||
const DifferentialGeometry & | dgShading | |||
) | const [virtual] |
Implements lux::Material.
Definition at line 63 of file carpaint.cpp.
References lux::MultiBSDF::Add(), lux::BSDF::Alloc(), BSDF_ALLOC, lux::Material::Bump(), bumpMap, Clamp(), lux::Material::compParams, depth, Ka, Kd, Ks1, Ks2, Ks3, M1, M2, M3, M_PI, lux::DifferentialGeometry::nn, R1, r1, R2, r2, R3, and lux::BSDF::SetCompositingParams().
boost::shared_ptr<Texture<float> > lux::CarPaint::bumpMap [private] |
Definition at line 51 of file carpaint.h.
Referenced by CarPaint(), CreateMaterial(), and GetBSDF().
boost::shared_ptr<Texture<float> > lux::CarPaint::depth [private] |
Definition at line 50 of file carpaint.h.
Referenced by CarPaint(), and GetBSDF().
boost::shared_ptr<Texture<SWCSpectrum> > lux::CarPaint::Ka [private] |
Definition at line 49 of file carpaint.h.
Referenced by CarPaint(), CreateMaterial(), and GetBSDF().
boost::shared_ptr<Texture<SWCSpectrum> > lux::CarPaint::Kd [private] |
Definition at line 49 of file carpaint.h.
Referenced by CarPaint(), CreateMaterial(), and GetBSDF().
boost::shared_ptr<Texture<SWCSpectrum> > lux::CarPaint::Ks1 [private] |
Definition at line 49 of file carpaint.h.
Referenced by CarPaint(), CreateMaterial(), and GetBSDF().
boost::shared_ptr<Texture<SWCSpectrum> > lux::CarPaint::Ks2 [private] |
Definition at line 49 of file carpaint.h.
Referenced by CarPaint(), CreateMaterial(), and GetBSDF().
boost::shared_ptr<Texture<SWCSpectrum> > lux::CarPaint::Ks3 [private] |
Definition at line 49 of file carpaint.h.
Referenced by CarPaint(), CreateMaterial(), and GetBSDF().
boost::shared_ptr<Texture<float> > lux::CarPaint::M1 [private] |
Definition at line 50 of file carpaint.h.
Referenced by CarPaint(), CreateMaterial(), and GetBSDF().
boost::shared_ptr<Texture<float> > lux::CarPaint::M2 [private] |
Definition at line 50 of file carpaint.h.
Referenced by CarPaint(), CreateMaterial(), and GetBSDF().
boost::shared_ptr<Texture<float> > lux::CarPaint::M3 [private] |
Definition at line 50 of file carpaint.h.
Referenced by CarPaint(), CreateMaterial(), and GetBSDF().
boost::shared_ptr<Texture<float> > lux::CarPaint::R1 [private] |
Definition at line 50 of file carpaint.h.
Referenced by CarPaint(), CreateMaterial(), and GetBSDF().
boost::shared_ptr<Texture<float> > lux::CarPaint::R2 [private] |
Definition at line 50 of file carpaint.h.
Referenced by CarPaint(), CreateMaterial(), and GetBSDF().
boost::shared_ptr<Texture<float> > lux::CarPaint::R3 [private] |
Definition at line 50 of file carpaint.h.
Referenced by CarPaint(), CreateMaterial(), and GetBSDF().