Public Member Functions | |
Plastic (Reference< Texture< Spectrum > > kd, Reference< Texture< Spectrum > > ks, Reference< Texture< float > > rough, Reference< Texture< float > > bump) | |
BSDF * | GetBSDF (const DifferentialGeometry &dgGeom, const DifferentialGeometry &dgShading) const |
Private Attributes | |
Reference< Texture< Spectrum > > | Kd |
Reference< Texture< Spectrum > > | Ks |
Reference< Texture< float > > | roughness |
Reference< Texture< float > > | bumpMap |
Definition at line 28 of file plastic.cpp.
Plastic::Plastic | ( | Reference< Texture< Spectrum > > | kd, | |
Reference< Texture< Spectrum > > | ks, | |||
Reference< Texture< float > > | rough, | |||
Reference< Texture< float > > | bump | |||
) | [inline] |
Definition at line 31 of file plastic.cpp.
References bumpMap, Kd, Ks, and roughness.
Referenced by CreateMaterial().
BSDF * Plastic::GetBSDF | ( | const DifferentialGeometry & | dgGeom, | |
const DifferentialGeometry & | dgShading | |||
) | const [virtual] |
Implements Material.
Definition at line 48 of file plastic.cpp.
References BSDF::Add(), BSDF_ALLOC, Material::Bump(), bumpMap, Kd, Ks, DifferentialGeometry::nn, and roughness.
Reference<Texture<Spectrum> > Plastic::Kd [private] |
Definition at line 44 of file plastic.cpp.
Referenced by CreateMaterial(), GetBSDF(), and Plastic().
Reference<Texture<Spectrum> > Plastic::Ks [private] |
Definition at line 44 of file plastic.cpp.
Referenced by CreateMaterial(), GetBSDF(), and Plastic().
Reference<Texture<float> > Plastic::roughness [private] |
Definition at line 45 of file plastic.cpp.
Referenced by CreateMaterial(), GetBSDF(), and Plastic().
Reference<Texture<float> > Plastic::bumpMap [private] |
Definition at line 45 of file plastic.cpp.
Referenced by CreateMaterial(), GetBSDF(), and Plastic().