#include <roughglass.h>
Public Member Functions | |
| RoughGlass (boost::shared_ptr< Texture< SWCSpectrum > > r, boost::shared_ptr< Texture< SWCSpectrum > > t, boost::shared_ptr< Texture< float > > urough, boost::shared_ptr< Texture< float > > vrough, boost::shared_ptr< Texture< float > > i, boost::shared_ptr< Texture< float > > cbf, boost::shared_ptr< Texture< float > > bump, const CompositingParams &cp) | |
| virtual | ~RoughGlass () |
| 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 > > | Kr |
| boost::shared_ptr< Texture < SWCSpectrum > > | Kt |
| boost::shared_ptr< Texture < float > > | index |
| boost::shared_ptr< Texture < float > > | cauchyb |
| boost::shared_ptr< Texture < float > > | uroughness |
| boost::shared_ptr< Texture < float > > | vroughness |
| boost::shared_ptr< Texture < float > > | bumpMap |
Definition at line 31 of file roughglass.h.
| lux::RoughGlass::RoughGlass | ( | boost::shared_ptr< Texture< SWCSpectrum > > | r, | |
| boost::shared_ptr< Texture< SWCSpectrum > > | t, | |||
| boost::shared_ptr< Texture< float > > | urough, | |||
| boost::shared_ptr< Texture< float > > | vrough, | |||
| boost::shared_ptr< Texture< float > > | i, | |||
| boost::shared_ptr< Texture< float > > | cbf, | |||
| boost::shared_ptr< Texture< float > > | bump, | |||
| const CompositingParams & | cp | |||
| ) | [inline] |
Definition at line 34 of file roughglass.h.
References bumpMap, cauchyb, lux::Material::compParams, index, Kr, Kt, lux::r, uroughness, and vroughness.
Referenced by CreateMaterial().
| virtual lux::RoughGlass::~RoughGlass | ( | ) | [inline, virtual] |
Definition at line 47 of file roughglass.h.
| Material * RoughGlass::CreateMaterial | ( | const Transform & | xform, | |
| const TextureParams & | mp | |||
| ) | [static] |
Definition at line 72 of file roughglass.cpp.
References bumpMap, lux::Material::FindCompositingParams(), lux::TextureParams::GetFloatTexture(), lux::TextureParams::GetSWCSpectrumTexture(), index, Kr, Kt, RoughGlass(), uroughness, and vroughness.
| BSDF * RoughGlass::GetBSDF | ( | const TsPack * | tspack, | |
| const DifferentialGeometry & | dgGeom, | |||
| const DifferentialGeometry & | dgShading | |||
| ) | const [virtual] |
Implements lux::Material.
Definition at line 36 of file roughglass.cpp.
References lux::MultiBSDF::Add(), lux::SWCSpectrum::Black(), BSDF_ALLOC, lux::Material::Bump(), bumpMap, cauchyb, lux::Material::compParams, index, Kr, Kt, lux::DifferentialGeometry::nn, lux::BSDF::SetCompositingParams(), uroughness, and vroughness.
boost::shared_ptr<Texture<float> > lux::RoughGlass::bumpMap [private] |
Definition at line 58 of file roughglass.h.
Referenced by CreateMaterial(), GetBSDF(), and RoughGlass().
boost::shared_ptr<Texture<float> > lux::RoughGlass::cauchyb [private] |
Definition at line 55 of file roughglass.h.
Referenced by GetBSDF(), and RoughGlass().
boost::shared_ptr<Texture<float> > lux::RoughGlass::index [private] |
Definition at line 54 of file roughglass.h.
Referenced by CreateMaterial(), GetBSDF(), and RoughGlass().
boost::shared_ptr<Texture<SWCSpectrum> > lux::RoughGlass::Kr [private] |
Definition at line 53 of file roughglass.h.
Referenced by CreateMaterial(), GetBSDF(), and RoughGlass().
boost::shared_ptr<Texture<SWCSpectrum> > lux::RoughGlass::Kt [private] |
Definition at line 53 of file roughglass.h.
Referenced by CreateMaterial(), GetBSDF(), and RoughGlass().
boost::shared_ptr<Texture<float> > lux::RoughGlass::uroughness [private] |
Definition at line 56 of file roughglass.h.
Referenced by CreateMaterial(), GetBSDF(), and RoughGlass().
boost::shared_ptr<Texture<float> > lux::RoughGlass::vroughness [private] |
Definition at line 57 of file roughglass.h.
Referenced by CreateMaterial(), GetBSDF(), and RoughGlass().
1.6.2-20100208