#include <DebugShader.h>
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. |
DebugShader::DebugShader | ( | Scene * | scene | ) | [inline] |
DebugShader::~DebugShader | ( | ) | [inline] |
Definition at line 26 of file DebugShader.h.
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.