PlasmaShader Class Reference

#include <PlasmaShader.h>

Inheritance diagram for PlasmaShader:

Shader

Detailed Description

Inherits from Shader. This shader tries to simulate Plasma.

Definition at line 17 of file PlasmaShader.h.


Public Member Functions

 PlasmaShader (Scene *scene)
 Initializes the shader with the scene.
ColorRGBA Shade (Ray &ray)
 Shades the surface point with a simulation of plasma.

Private Attributes

PerlinNoise3D pnoise
 The noise that is used to generate the plasma.

Constructor & Destructor Documentation

PlasmaShader::PlasmaShader ( Scene scene  )  [inline]

Initializes the shader with the scene.

Definition at line 32 of file PlasmaShader.h.


Member Function Documentation

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

Shades the surface point with a simulation of plasma.

Parameters:
ray The ray that hit a surface that is associated with this shader.
Returns:
The color of the surface point.

Implements Shader.

Definition at line 42 of file PlasmaShader.h.

References Vector3D::Abs(), Primitive::GetNormal(), Timer::GetTime(), Primitive::GetUV(), Ray::hit, PerlinNoise3D::noise(), PAIR, pnoise, Shader::scene, and Scene::timer.


Field Documentation

PerlinNoise3D PlasmaShader::pnoise [private]

The noise that is used to generate the plasma.

PerlinNoise3D pnoise.

Definition at line 24 of file PlasmaShader.h.

Referenced by Shade().


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