EyeLightShader Class Reference

#include <EyeLightShader.h>

Inheritance diagram for EyeLightShader:

Shader

Detailed Description

inherits from Shader. This shader tries to simulate poorely the perception of an human eye.

Definition at line 15 of file EyeLightShader.h.


Public Member Functions

 EyeLightShader (Scene *scene, ColorRGBA color=ColorRGBA(0.5, 0.5, 0.5))
 Initializes the shader with the scene and the basic color.
ColorRGBA Shade (Ray &ray)
 Returns the color of that specific point on a surface.

Data Fields

ColorRGBA color
 The basic color of the associated surface.

Constructor & Destructor Documentation

EyeLightShader::EyeLightShader ( Scene scene,
ColorRGBA  color = ColorRGBA(0.5,0.5,0.5) 
) [inline]

Initializes the shader with the scene and the basic color.

Definition at line 29 of file EyeLightShader.h.


Member Function Documentation

ColorRGBA EyeLightShader::Shade ( Ray ray  )  [inline, virtual]

Returns the color of that specific point on a surface.

Implements Shader.

Definition at line 37 of file EyeLightShader.h.

References color, Ray::dir, Dot(), Primitive::GetNormal(), and Ray::hit.


Field Documentation

ColorRGBA EyeLightShader::color

The basic color of the associated surface.

ColorRGBA color

Definition at line 23 of file EyeLightShader.h.

Referenced by Shade().


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