#include <MixShader.h>
Definition at line 15 of file MixShader.h.
Public Member Functions | |
MixShader (Scene *scene, Shader *s1, Shader *s2) | |
Initializes the shader with the two shaders and the scene. | |
~MixShader () | |
ColorRGBA | Shade (Ray &ray) |
The values of the first and the second shader are interpolated over the time. | |
Private Attributes | |
Shader * | s1 |
The first shader. | |
Shader * | s2 |
The second shader. |
Initializes the shader with the two shaders and the scene.
Definition at line 35 of file MixShader.h.
MixShader::~MixShader | ( | ) | [inline] |
Definition at line 38 of file MixShader.h.
The values of the first and the second shader are interpolated over the time.
ray | The ray that hits a surface associated with this shader. |
Implements Shader.
Definition at line 46 of file MixShader.h.
References Timer::GetTime(), ColorRGBA::interpolated(), s1, s2, Shader::scene, Shader::Shade(), and Scene::timer.
Shader* MixShader::s1 [private] |
Shader* MixShader::s2 [private] |