LambertianMaterial Class Reference

#include <LambertianMaterial.h>

Inherits Material.


Public Member Functions

 LambertianMaterial (const Color &color, float Kd, float Ka)
virtual ~LambertianMaterial ()
virtual void shade (Color &result, const RenderContext &context, const Ray &ray, const HitRecord &hit, const Color &atten, int depth) const


Detailed Description

Definition at line 11 of file LambertianMaterial.h.


Constructor & Destructor Documentation

LambertianMaterial const Color color,
float  Kd,
float  Ka
 

Definition at line 17 of file LambertianMaterial.cc.

~LambertianMaterial  )  [virtual]
 

Definition at line 22 of file LambertianMaterial.cc.


Member Function Documentation

void shade Color result,
const RenderContext context,
const Ray ray,
const HitRecord hit,
const Color atten,
int  depth
const [virtual]
 

Implements Material.

Definition at line 26 of file LambertianMaterial.cc.

References Ray::direction(), Dot(), Scene::getAmbient(), Scene::getLights(), Scene::getObject(), HitRecord::getPrimitive(), RenderContext::getScene(), Object::intersect(), HitRecord::minT(), Primitive::normal(), Vector::normalize(), and Ray::origin().


The documentation for this class was generated from the following files:
Generated on Tue Jan 29 21:34:55 2008 for specter by  doxygen 1.4.6