DebugShader Class Reference

#include <DebugShader.h>

Inheritance diagram for DebugShader:

Shader

Detailed Description

inherits from Shader. This is the simplest shader. It only returns the absolute value of the normal.

Definition at line 16 of file DebugShader.h.


Public Member Functions

 DebugShader (Scene *scene)
 Initializes the Shader with the scene.
 ~DebugShader ()
ColorRGBA Shade (Ray &ray)
 The absolut value of the normal is returned. The color can be used for debugging.

Constructor & Destructor Documentation

DebugShader::DebugShader ( Scene scene  )  [inline]

Initializes the Shader with the scene.

Definition at line 23 of file DebugShader.h.

DebugShader::~DebugShader (  )  [inline]

Definition at line 26 of file DebugShader.h.


Member Function Documentation

ColorRGBA DebugShader::Shade ( Ray ray  )  [inline, virtual]

The absolut value of the normal is returned. The color can be used for debugging.

Implements Shader.

Definition at line 32 of file DebugShader.h.

References Vector3D::Abs(), Primitive::GetNormal(), and Ray::hit.


The documentation for this class was generated from the following file:
Generated on Thu Jan 31 21:48:52 2008 for RayTracer by  doxygen 1.5.4