#include <PlasmaShader.h>
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. |
PlasmaShader::PlasmaShader | ( | Scene * | scene | ) | [inline] |
Shades the surface point with a simulation of plasma.
ray | The ray that hit a surface that is associated with this shader. |
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.
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().