BumpMappedPhongShader Class Reference

#include <BumpMappedPhongShader.h>

Inheritance diagram for BumpMappedPhongShader:

Shader

Detailed Description

Definition at line 6 of file BumpMappedPhongShader.h.


Public Member Functions

 BumpMappedPhongShader (Scene *scene, ColorRGBA color, float ka, float kd, float ks, float ke, Texture *bumpmap, float bumpfactor)
virtual ColorRGBA Shade (Ray &ray)
 Assigns a color value for the surface point.

Data Fields

ColorRGBA color
float ka
float kd
float ks
float ke
Texturebumpmap
float bumpfactor

Constructor & Destructor Documentation

BumpMappedPhongShader::BumpMappedPhongShader ( Scene scene,
ColorRGBA  color,
float  ka,
float  kd,
float  ks,
float  ke,
Texture bumpmap,
float  bumpfactor 
) [inline]

Definition at line 18 of file BumpMappedPhongShader.h.


Member Function Documentation

virtual ColorRGBA BumpMappedPhongShader::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 23 of file BumpMappedPhongShader.h.

References ColorRGBA::blue(), bumpfactor, bumpmap, Primitive::castShadows(), Scene::castShadows, color, Cross(), Ray::dir, Dot(), Primitive::GetNormal(), Texture::GetTexel(), Shader::getTexture(), Shader::getTextureCount(), Primitive::GetUV(), ColorRGBA::green(), Ray::hit, Scene::Intersect(), ka, kd, ke, ks, Scene::mLights, Vector3D::Normalized(), Ray::org, ColorRGBA::red(), Shader::scene, and Ray::t.


Field Documentation

ColorRGBA BumpMappedPhongShader::color

Definition at line 9 of file BumpMappedPhongShader.h.

Referenced by Shade().

float BumpMappedPhongShader::ka

Definition at line 10 of file BumpMappedPhongShader.h.

Referenced by Shade().

float BumpMappedPhongShader::kd

Definition at line 11 of file BumpMappedPhongShader.h.

Referenced by Shade().

float BumpMappedPhongShader::ks

Definition at line 12 of file BumpMappedPhongShader.h.

Referenced by Shade().

float BumpMappedPhongShader::ke

Definition at line 13 of file BumpMappedPhongShader.h.

Referenced by Shade().

Texture* BumpMappedPhongShader::bumpmap

Definition at line 15 of file BumpMappedPhongShader.h.

Referenced by Shade().

float BumpMappedPhongShader::bumpfactor

Definition at line 16 of file BumpMappedPhongShader.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