|
Ray Tracer Common Project
Image rendering program based on the ray tracing technique.
|
#include <texture.hpp>
Public Member Functions | |
| virtual | ~Texture ()=0 |
| Virtualdestructor. | |
| virtual color | value (const vector &pos) const =0 |
| Get the value/color of the texture. More... | |
Material texture.
A texture is nothing more than a color field. It map a vector to a color. A texture is used to alter materials attributes (diffuse color, etc...).
Get the value/color of the texture.
| pos | A position in texture space. Note that 3D texture exists. |
Implemented in rt::ImageTexture, and rt::FunnyTexture.
1.8.15