#include <GoldShader.h>
Definition at line 14 of file GoldShader.h.
Public Member Functions | |
GoldShader (Scene *scene) | |
~GoldShader () | |
ColorRGBA | Shade (Ray &ray) |
Assigns a color value for the surface point. | |
Private Attributes | |
Fresnel * | _fresnel |
Used to evaluate the Fresnel coefficients. |
GoldShader::GoldShader | ( | Scene * | scene | ) | [inline] |
GoldShader::~GoldShader | ( | ) | [inline] |
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 35 of file GoldShader.h.
References _fresnel, Ray::bounces, Ray::dir, Dot(), Fresnel::Evaluate(), Primitive::GetNormal(), Ray::hit, Infinity, Vector3D::Length(), Ray::org, Scene::RayTrace(), Shader::scene, Ray::t, Ray::u, and Ray::v.
Fresnel* GoldShader::_fresnel [private] |
Used to evaluate the Fresnel coefficients.
Fresnel* _fresnel
Definition at line 21 of file GoldShader.h.
Referenced by GoldShader(), Shade(), and ~GoldShader().