#include <EyeLightShader.h>
Definition at line 15 of file EyeLightShader.h.
Public Member Functions | |
EyeLightShader (Scene *scene, ColorRGBA color=ColorRGBA(0.5, 0.5, 0.5)) | |
Initializes the shader with the scene and the basic color. | |
ColorRGBA | Shade (Ray &ray) |
Returns the color of that specific point on a surface. | |
Data Fields | |
ColorRGBA | color |
The basic color of the associated surface. |
Initializes the shader with the scene and the basic color.
Definition at line 29 of file EyeLightShader.h.
Returns the color of that specific point on a surface.
Implements Shader.
Definition at line 37 of file EyeLightShader.h.
References color, Ray::dir, Dot(), Primitive::GetNormal(), and Ray::hit.
The basic color of the associated surface.
ColorRGBA color
Definition at line 23 of file EyeLightShader.h.
Referenced by Shade().