#include <FlatShader.h>
Definition at line 16 of file FlatShader.h.
Public Member Functions | |
FlatShader (Scene *scene, ColorRGBA color=ColorRGBA(1.0, 1.0, 1.0)) | |
Initializes the shader with the scene and the basic color. | |
ColorRGBA | Shade (Ray &ray) |
Maps textures to the surface and combine them all. | |
Data Fields | |
ColorRGBA | color |
The basic color of the associated surface. |
Initializes the shader with the scene and the basic color.
Definition at line 30 of file FlatShader.h.
Maps textures to the surface and combine them all.
Implements Shader.
Definition at line 38 of file FlatShader.h.
References color, Texture::GetTexel(), Shader::getTexture(), Shader::getTextureCount(), Primitive::GetUV(), and Ray::hit.
The basic color of the associated surface.
ColorRGBA color
Definition at line 24 of file FlatShader.h.
Referenced by Shade().