CenterMapShader Class Reference

#include <CenterMapShader.h>

Inheritance diagram for CenterMapShader:

Shader

Detailed Description

Definition at line 6 of file CenterMapShader.h.


Public Member Functions

 CenterMapShader (Scene *scene, Shader *s1, Shader *s2, Texture *map)
 ~CenterMapShader ()
ColorRGBA Shade (Ray &ray)
 Assigns a color value for the surface point.

Private Attributes

Shaders1
Shaders2
Texturemap

Constructor & Destructor Documentation

CenterMapShader::CenterMapShader ( Scene scene,
Shader s1,
Shader s2,
Texture map 
) [inline]

Definition at line 14 of file CenterMapShader.h.

CenterMapShader::~CenterMapShader (  )  [inline]

Definition at line 17 of file CenterMapShader.h.


Member Function Documentation

ColorRGBA CenterMapShader::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 19 of file CenterMapShader.h.

References ColorRGBA::average(), Ray::dir, Texture::GetTexel(), Primitive::GetUV(), Ray::hit, ColorRGBA::interpolated(), Vector3D::Length(), map, Ray::org, PAIR, s1, s2, Shader::Shade(), and Ray::t.


Field Documentation

Shader* CenterMapShader::s1 [private]

Definition at line 9 of file CenterMapShader.h.

Referenced by Shade().

Shader* CenterMapShader::s2 [private]

Definition at line 10 of file CenterMapShader.h.

Referenced by Shade().

Texture* CenterMapShader::map [private]

Definition at line 11 of file CenterMapShader.h.

Referenced by Shade().


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