#include <CloudShader.h>
Inherits ProceduralShader.
Inheritance diagram for CloudShader:
Public Member Functions | |
CloudShader (Scene *scene, const RGBAColor &color) | |
RGBAColor | shade (const Ray &ray) const |
Private Attributes | |
RGBAColor | mColor |
color for the sky |
Definition at line 15 of file CloudShader.h.
Constructor
scene | The scene which this shader belongs to | |
color | The base color for the sky |
Definition at line 22 of file CloudShader.h.
normal shade method with a atmospheric scattering effect by using linear interpolation
ray | The ray which hits the primitive |
Implements Shader.
Definition at line 32 of file CloudShader.h.
References Ray::hit(), max(), mColor, min(), ProceduralShader::mPerlin, PerlinNoise::perlinNoise(), TexCoordinate::setY(), Primitive::texCoord(), TexCoordinate::x(), and TexCoordinate::y().
RGBAColor CloudShader::mColor [private] |