GoldShader Class Reference

#include <GoldShader.h>

Inheritance diagram for GoldShader:

Shader

Detailed Description

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.

Constructor & Destructor Documentation

GoldShader::GoldShader ( Scene scene  )  [inline]

Definition at line 24 of file GoldShader.h.

References _fresnel.

GoldShader::~GoldShader (  )  [inline]

Definition at line 30 of file GoldShader.h.

References _fresnel.


Member Function Documentation

ColorRGBA GoldShader::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 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.


Field Documentation

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().


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