Raytracer
Loading...
Searching...
No Matches
SolidColor.hpp
1#include "interfaces/ITexture.hpp"
2
3#ifndef __SOLIDCOLOR_HPP__
4 #define __SOLIDCOLOR_HPP__
5
6namespace Raytracer::Textures
7{
9 private:
10 Utils::Color _albedo;
11
12 public:
13 SolidColor(const Utils::Color &albedo);
14 SolidColor(double red, double green, double blue);
16 double u, double v, const Utils::Point3 &point) const override;
17 };
18} // namespace Raytracer::Textures
19
20#endif /* __SOLIDCOLOR_HPP__ */
Definition ITexture.hpp:8
Definition SolidColor.hpp:8
Utils::Color value(double u, double v, const Utils::Point3 &point) const override
Get the value of the solid color texture.
Definition SolidColor.cpp:50
SolidColor(const Utils::Color &albedo)
Construct a new SolidColor object.
Definition SolidColor.cpp:14
Definition VecN.hpp:40