BumpMappedDebugShader Class Reference

#include <BumpMappedDebugShader.h>

Inheritance diagram for BumpMappedDebugShader:

Shader

Detailed Description

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

Texturebumpmap
float bumpfactor

Constructor & Destructor Documentation

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.


Member Function Documentation

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

Assigns a color value for the surface point.

Parameters:
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.


Field Documentation

Texture* BumpMappedDebugShader::bumpmap [private]

Definition at line 13 of file BumpMappedDebugShader.h.

Referenced by Shade().

float BumpMappedDebugShader::bumpfactor [private]

Definition at line 14 of file BumpMappedDebugShader.h.

Referenced by Shade().


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