#include <BumpMappedDebugShader.h>
Definition at line 11 of file BumpMappedDebugShader.h.
Public Member Functions | |
BumpMappedDebugShader (Scene *scene, Texture *bumpmap, float bumpfactor) | |
~BumpMappedDebugShader () | |
ColorRGBA | Shade (Ray &ray) |
Assigns a color value for the surface point. | |
Private Attributes | |
Texture * | bumpmap |
float | bumpfactor |
BumpMappedDebugShader::BumpMappedDebugShader | ( | Scene * | scene, | |
Texture * | bumpmap, | |||
float | bumpfactor | |||
) | [inline] |
Definition at line 17 of file BumpMappedDebugShader.h.
BumpMappedDebugShader::~BumpMappedDebugShader | ( | ) | [inline] |
Definition at line 20 of file BumpMappedDebugShader.h.
Assigns a color value for the surface point.
ray | The ray that has hit a surface that is associated with a shader. |
Implements Shader.
Definition at line 22 of file BumpMappedDebugShader.h.
References bumpfactor, bumpmap, Cross(), Ray::dir, Primitive::GetNormal(), Texture::GetTexel(), Primitive::GetUV(), Ray::hit, Vector3D::Normalized(), Ray::org, and Ray::t.
Texture* BumpMappedDebugShader::bumpmap [private] |
float BumpMappedDebugShader::bumpfactor [private] |