Ray Tracer Common Project
Image rendering program based on the ray tracing technique.
funnytexture.hpp
1 
15 #pragma once
16 
17 #include "texture.hpp"
18 
19 namespace rt{
20 
24 class FunnyTexture : public Texture{
25 public:
29  enum Pattern{
31  };
32 
38  FunnyTexture(Pattern pat, double scale = 1.0);
39 
44  virtual color value(const vector &) const;
45 
46 private:
47  Pattern _pat;
48  double _scale;
49 };
50 
51 }
Material texture.
Definition: texture.hpp:28
Definition: bitmap.cpp:4
RGBA color representation.
Definition: color.hpp:31
3D vector
Definition: vector.hpp:28
Definition: funnytexture.hpp:30
Pattern
Funny texture patterns.
Definition: funnytexture.hpp:29
3D texture based on patterns
Definition: funnytexture.hpp:24
FunnyTexture(Pattern pat, double scale=1.0)
Create a new funny texture.
Definition: funnytexture.cpp:5
virtual color value(const vector &) const
Get the value/color of the texture.
Definition: funnytexture.cpp:10