#include <DebugShader.h>
Inherits Shader.
Inheritance diagram for DebugShader:
Public Member Functions | |
DebugShader (Scene *scene) | |
RGBAColor | shade (const Ray &ray) const |
Definition at line 13 of file DebugShader.h.
DebugShader::DebugShader | ( | Scene * | scene | ) | [inline] |
Debug shader will just use colors to output debug information
Implements Shader.
Definition at line 27 of file DebugShader.h.
References Vec3f::fabs(), Ray::hit(), Primitive::normal(), RGBAColor::scale(), Primitive::texCoord(), Shader::texture(), and Shader::textureCount().