#include <glass.h>
Public Member Functions | |
Glass (boost::shared_ptr< Texture< SWCSpectrum > > r, boost::shared_ptr< Texture< SWCSpectrum > > t, boost::shared_ptr< Texture< float > > i, boost::shared_ptr< Texture< float > > cbf, boost::shared_ptr< Texture< float > > flm, boost::shared_ptr< Texture< float > > flmindex, bool archi, boost::shared_ptr< Texture< float > > bump, const CompositingParams &cp) | |
virtual | ~Glass () |
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 > > | film |
boost::shared_ptr< Texture < float > > | filmindex |
boost::shared_ptr< Texture < float > > | bumpMap |
bool | architectural |
Definition at line 31 of file glass.h.
lux::Glass::Glass | ( | boost::shared_ptr< Texture< SWCSpectrum > > | r, | |
boost::shared_ptr< Texture< SWCSpectrum > > | t, | |||
boost::shared_ptr< Texture< float > > | i, | |||
boost::shared_ptr< Texture< float > > | cbf, | |||
boost::shared_ptr< Texture< float > > | flm, | |||
boost::shared_ptr< Texture< float > > | flmindex, | |||
bool | archi, | |||
boost::shared_ptr< Texture< float > > | bump, | |||
const CompositingParams & | cp | |||
) | [inline] |
Definition at line 34 of file glass.h.
References architectural, bumpMap, cauchyb, lux::Material::compParams, film, filmindex, index, Kr, Kt, and lux::r.
Referenced by CreateMaterial().
Material * Glass::CreateMaterial | ( | const Transform & | xform, | |
const TextureParams & | mp | |||
) | [static] |
Definition at line 70 of file glass.cpp.
References bumpMap, film, filmindex, lux::TextureParams::FindBool(), lux::Material::FindCompositingParams(), lux::TextureParams::GetFloatTexture(), lux::TextureParams::GetSWCSpectrumTexture(), Glass(), index, Kr, and Kt.
BSDF * Glass::GetBSDF | ( | const TsPack * | tspack, | |
const DifferentialGeometry & | dgGeom, | |||
const DifferentialGeometry & | dgShading | |||
) | const [virtual] |
Implements lux::Material.
Definition at line 35 of file glass.cpp.
References lux::MultiBSDF::Add(), architectural, lux::SWCSpectrum::Black(), BSDF_ALLOC, lux::Material::Bump(), bumpMap, cauchyb, lux::Material::compParams, film, filmindex, index, Kr, Kt, lux::DifferentialGeometry::nn, and lux::BSDF::SetCompositingParams().
bool lux::Glass::architectural [private] |
boost::shared_ptr<Texture<float> > lux::Glass::bumpMap [private] |
Definition at line 58 of file glass.h.
Referenced by CreateMaterial(), GetBSDF(), and Glass().
boost::shared_ptr<Texture<float> > lux::Glass::cauchyb [private] |
boost::shared_ptr<Texture<float> > lux::Glass::film [private] |
Definition at line 57 of file glass.h.
Referenced by CreateMaterial(), GetBSDF(), and Glass().
boost::shared_ptr<Texture<float> > lux::Glass::filmindex [private] |
Definition at line 57 of file glass.h.
Referenced by CreateMaterial(), GetBSDF(), and Glass().
boost::shared_ptr<Texture<float> > lux::Glass::index [private] |
Definition at line 55 of file glass.h.
Referenced by CreateMaterial(), GetBSDF(), and Glass().
boost::shared_ptr<Texture<SWCSpectrum> > lux::Glass::Kr [private] |
Definition at line 54 of file glass.h.
Referenced by CreateMaterial(), GetBSDF(), and Glass().
boost::shared_ptr<Texture<SWCSpectrum> > lux::Glass::Kt [private] |
Definition at line 54 of file glass.h.
Referenced by CreateMaterial(), GetBSDF(), and Glass().