DebugShader Class Reference

#include <DebugShader.h>

Inherits Shader.

Inheritance diagram for DebugShader:

Inheritance graph
[legend]
Collaboration diagram for DebugShader:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DebugShader (Scene *scene)
RGBAColor shade (const Ray &ray) const

Detailed Description

A debug shader. Normal in the hit point is taken as color and mixed with all assigned textures

Author:
Alex Busenius

Christian Engels

Definition at line 13 of file DebugShader.h.


Constructor & Destructor Documentation

DebugShader::DebugShader ( Scene scene  )  [inline]

Constructor

Parameters:
scene a pointer to the scene

Definition at line 20 of file DebugShader.h.


Member Function Documentation

RGBAColor DebugShader::shade ( const Ray ray  )  const [inline, virtual]

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


The documentation for this class was generated from the following file:
Generated on Fri Feb 1 00:02:17 2008 for Grayfall by  doxygen 1.5.1