#include <BumpMappedPhongShader.h>
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 |
Texture * | bumpmap |
float | bumpfactor |
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.
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 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.