Ray Tracer Common Project
Image rendering program based on the ray tracing technique.
texture.hpp
1 
15 #pragma once
16 
17 #include "core/color.hpp"
18 #include "core/vector.hpp"
19 
20 namespace rt{
21 
28 class Texture{
29 public:
33  virtual ~Texture() = 0;
34 
39  virtual color value(const vector & pos) const = 0;
40 };
41 
42 }
virtual ~Texture()=0
Virtualdestructor.
Definition: texture.cpp:5
Material texture.
Definition: texture.hpp:28
Definition: bitmap.cpp:4
RGBA color representation.
Definition: color.hpp:31
3D vector
Definition: vector.hpp:28
virtual color value(const vector &pos) const =0
Get the value/color of the texture.