#include <CloudShader.h>
Definition at line 17 of file CloudShader.h.
Public Member Functions | |
CloudShader (Scene *scene, ColorRGBA color=ColorRGBA(0.08, 0.15, 0.27)) | |
ColorRGBA | Shade (Ray &ray) |
Return a color for the hitpoint of the ray. | |
Private Attributes | |
ColorRGBA | color |
The color of the clouds. | |
PerlinNoise3D | pnoise |
The noise that is used to simulate the clouds. |
Definition at line 34 of file CloudShader.h.
Return a color for the hitpoint of the ray.
ray | The ray that has intersect with a surface that is associated with this shader. |
Implements Shader.
Definition at line 45 of file CloudShader.h.
References color, Ray::dir, Timer::GetTime(), Primitive::GetUV(), Ray::hit, PerlinNoise3D::noise(), Ray::org, PAIR, pnoise, Ray::t, Scene::timer, Vector3D::x(), Vector3D::y(), and Vector3D::z().
ColorRGBA CloudShader::color [private] |
The color of the clouds.
ColorRGBA color
Definition at line 24 of file CloudShader.h.
Referenced by Shade().
PerlinNoise3D CloudShader::pnoise [private] |
The noise that is used to simulate the clouds.
PerlinNoise3D pnoise
Definition at line 30 of file CloudShader.h.
Referenced by Shade().