#include <FlatTransparentShader.h>
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. |
FlatTransparentShader::FlatTransparentShader | ( | Scene * | scene | ) | [inline] |
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.