FlatTransparentShader Class Reference

#include <FlatTransparentShader.h>

Inheritance diagram for FlatTransparentShader:

Shader

Detailed Description

inherits from Shader. This simple shader maps textures on transparent surfaces.

Definition at line 16 of file FlatTransparentShader.h.


Public Member Functions

 FlatTransparentShader (Scene *scene)
 Initializes the shader with the scene.
ColorRGBA Shade (Ray &ray)
 Maps the textures to the transparent surface.

Constructor & Destructor Documentation

FlatTransparentShader::FlatTransparentShader ( Scene scene  )  [inline]

Initializes the shader with the scene.

Definition at line 23 of file FlatTransparentShader.h.


Member Function Documentation

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

Maps the textures to the transparent surface.

Implements Shader.

Definition at line 31 of file FlatTransparentShader.h.

References ColorRGBA::alpha(), Ray::bounces, Ray::dir, Texture::GetTexel(), Shader::getTexture(), Primitive::GetUV(), Ray::hit, ColorRGBA::interpolated(), Shader::mTexture, Ray::org, Scene::RayTrace(), Shader::scene, and Ray::t.


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