Plastic Class Reference

Inheritance diagram for Plastic:

Material ReferenceCounted

List of all members.

Public Member Functions

 Plastic (Reference< Texture< Spectrum > > kd, Reference< Texture< Spectrum > > ks, Reference< Texture< float > > rough, Reference< Texture< float > > bump)
BSDFGetBSDF (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


Detailed Description

Definition at line 28 of file plastic.cpp.


Constructor & Destructor Documentation

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().


Member Function Documentation

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.


Member Data Documentation

Definition at line 44 of file plastic.cpp.

Referenced by CreateMaterial(), GetBSDF(), and Plastic().

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().


The documentation for this class was generated from the following file:

Generated on Mon Jul 20 17:31:55 2009 for pbrt by  doxygen 1.5.6