#include <CopperShader.h>
Definition at line 14 of file CopperShader.h.
Public Member Functions | |
CopperShader (Scene *scene) | |
~CopperShader () | |
ColorRGBA | Shade (Ray &ray) |
Assigns a color value for the surface point. | |
Private Attributes | |
Fresnel * | _fresnel |
Used to evaluate the Fresnel coefficients. |
CopperShader::CopperShader | ( | Scene * | scene | ) | [inline] |
CopperShader::~CopperShader | ( | ) | [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 CopperShader.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* CopperShader::_fresnel [private] |
Used to evaluate the Fresnel coefficients.
Fresnel* _fresnel
Definition at line 21 of file CopperShader.h.
Referenced by CopperShader(), Shade(), and ~CopperShader().