TransparentShader Class Reference

#include <TransparentShader.h>

Inherits Shader.

Inheritance diagram for TransparentShader:

Inheritance graph
[legend]
Collaboration diagram for TransparentShader:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TransparentShader (Scene *scene, RGBAColor color=RGBAColor(1.0, 1.0, 1.0))
RGBAColor shade (const Ray &ray) const

Private Attributes

RGBAColor mColor
 Surface color.

Detailed Description

Colored transparent surface

Author:
Alex Busenius

Definition at line 16 of file TransparentShader.h.


Constructor & Destructor Documentation

TransparentShader::TransparentShader ( Scene scene,
RGBAColor  color = RGBAColor(1.0, 1.0, 1.0) 
) [inline]

Constructor

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

Definition at line 24 of file TransparentShader.h.


Member Function Documentation

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

Trace through the transparent parts of the object

Implements Shader.

Definition at line 33 of file TransparentShader.h.

References RGBAColor::a(), Ray::dir(), EPSILON, Ray::hitPoint(), Ray::init(), lerp(), mColor, Shader::mScene, Scene::rayTrace(), RGBAColor::rgb(), and Ray::updateInfluence().


Member Data Documentation

RGBAColor TransparentShader::mColor [private]

Surface color.

Definition at line 44 of file TransparentShader.h.

Referenced by shade().


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