CloudShader Class Reference

#include <CloudShader.h>

Inherits ProceduralShader.

Inheritance diagram for CloudShader:

Inheritance graph
[legend]
Collaboration diagram for CloudShader:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CloudShader (Scene *scene, const RGBAColor &color)
RGBAColor shade (const Ray &ray) const

Private Attributes

RGBAColor mColor
 color for the sky

Detailed Description

A Shader for cloud effects on the sky. The magic numbers for mPerlin originated from the exercise

Author:
Alex Busenius

Christian Engels

Definition at line 15 of file CloudShader.h.


Constructor & Destructor Documentation

CloudShader::CloudShader ( Scene scene,
const RGBAColor color 
) [inline]

Constructor

Parameters:
scene The scene which this shader belongs to
color The base color for the sky

Definition at line 22 of file CloudShader.h.


Member Function Documentation

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

normal shade method with a atmospheric scattering effect by using linear interpolation

Parameters:
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().


Member Data Documentation

RGBAColor CloudShader::mColor [private]

color for the sky

Definition at line 49 of file CloudShader.h.

Referenced by shade().


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