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

3D texture based on patterns More...

#include <funnytexture.hpp>

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

Public Types

enum  Pattern { Cubes }
 Funny texture patterns. More...
 

Public Member Functions

 FunnyTexture (Pattern pat, double scale=1.0)
 Create a new funny texture. More...
 
virtual color value (const vector &) const
 Get the value/color of the texture. More...
 
- Public Member Functions inherited from rt::Texture
virtual ~Texture ()=0
 Virtualdestructor.
 

Detailed Description

3D texture based on patterns

Member Enumeration Documentation

◆ Pattern

Funny texture patterns.

Enumerator
Cubes 

3D cubes pattern.

Constructor & Destructor Documentation

◆ FunnyTexture()

rt::FunnyTexture::FunnyTexture ( Pattern  pat,
double  scale = 1.0 
)

Create a new funny texture.

Parameters
patThe pattern of the texture.
scalePattern scale.

Member Function Documentation

◆ value()

color rt::FunnyTexture::value ( const vector pos) const
virtual

Get the value/color of the texture.

Parameters
posA position in texture space.

Implements rt::Texture.


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