CopperShader Class Reference

#include <CopperShader.h>

Inheritance diagram for CopperShader:

Shader

Detailed Description

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.

Constructor & Destructor Documentation

CopperShader::CopperShader ( Scene scene  )  [inline]

Definition at line 24 of file CopperShader.h.

References _fresnel.

CopperShader::~CopperShader (  )  [inline]

Definition at line 30 of file CopperShader.h.

References _fresnel.


Member Function Documentation

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


Field Documentation

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


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