MirrorShader Class Reference

#include <MirrorShader.h>

Inherits Shader.

Inheritance diagram for MirrorShader:

Inheritance graph
[legend]
Collaboration diagram for MirrorShader:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MirrorShader (Scene *scene, const RGBAColor &color)
RGBAColor shade (const Ray &ray) const

Private Attributes

RGBAColor mMirrorColor
 A color to shade the reflected ray.

Detailed Description

Colored reflecting surface

Author:
Alex Busenius

Definition at line 15 of file MirrorShader.h.


Constructor & Destructor Documentation

MirrorShader::MirrorShader ( Scene scene,
const RGBAColor color 
) [inline]

Constructor

Parameters:
scene Pointer to the scene
color Color of the mirror

Definition at line 23 of file MirrorShader.h.


Member Function Documentation

RGBAColor MirrorShader::shade ( const Ray ray  )  const [inline, virtual]

Mirror the ray on the surface and trace back

Parameters:
ray The ray which hits the surface which we should shade

Implements Shader.

Definition at line 33 of file MirrorShader.h.

References RGBAColor::a(), Ray::dir(), Vec3f::dot(), EPSILON, Ray::hit(), Ray::hitPoint(), Ray::influence(), Ray::init(), lerp(), MAX_RECURSION_DEEP, MIN_INFLUENCE, mMirrorColor, Shader::mScene, Shader::normal(), Ray::obj(), Scene::rayTrace(), Ray::recDeep(), RGBAColor::rgb(), and Ray::updateInfluence().


Member Data Documentation

RGBAColor MirrorShader::mMirrorColor [private]

A color to shade the reflected ray.

Definition at line 65 of file MirrorShader.h.

Referenced by shade().


The documentation for this class was generated from the following file:
Generated on Fri Feb 1 00:02:19 2008 for Grayfall by  doxygen 1.5.1