#include <TransparentShader.h>
Inherits Shader.
Inheritance diagram for TransparentShader:
Public Member Functions | |
TransparentShader (Scene *scene, RGBAColor color=RGBAColor(1.0, 1.0, 1.0)) | |
RGBAColor | shade (const Ray &ray) const |
Private Attributes | |
RGBAColor | mColor |
Surface color. |
Definition at line 16 of file TransparentShader.h.
TransparentShader::TransparentShader | ( | Scene * | scene, | |
RGBAColor | color = RGBAColor(1.0, 1.0, 1.0) | |||
) | [inline] |
Constructor
scene | Pointer to the scene | |
color | Color of the mirror |
Definition at line 24 of file TransparentShader.h.
Trace through the transparent parts of the object
Implements Shader.
Definition at line 33 of file TransparentShader.h.
References RGBAColor::a(), Ray::dir(), EPSILON, Ray::hitPoint(), Ray::init(), lerp(), mColor, Shader::mScene, Scene::rayTrace(), RGBAColor::rgb(), and Ray::updateInfluence().
RGBAColor TransparentShader::mColor [private] |