Ray Tracer Common Project
Image rendering program based on the ray tracing technique.
Public Member Functions | List of all members
rt::Texture Class Referenceabstract

Material texture. More...

#include <texture.hpp>

Inheritance diagram for rt::Texture:
rt::FunnyTexture rt::ImageTexture

Public Member Functions

virtual ~Texture ()=0
 Virtualdestructor.
 
virtual color value (const vector &pos) const =0
 Get the value/color of the texture. More...
 

Detailed Description

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...).

Member Function Documentation

◆ value()

virtual color rt::Texture::value ( const vector pos) const
pure virtual

Get the value/color of the texture.

Parameters
posA position in texture space. Note that 3D texture exists.

Implemented in rt::ImageTexture, and rt::FunnyTexture.


The documentation for this class was generated from the following files: