Raytracer
Loading...
Searching...
No Matches
Noise.hpp
1#include "interfaces/ITexture.hpp"
2#include "utils/Perlin.hpp"
3
4#ifndef __NOISE_HPP__
5 #define __NOISE_HPP__
6
7namespace Raytracer::Textures
8{
9 class Noise : public Interfaces::ITexture {
10 private:
11 double _scale;
12 Utils::Perlin _perlin;
13
14 public:
15 Noise(double scale);
17 double u, double v, const Utils::Point3 &point) const override;
18 };
19} // namespace Raytracer::Textures
20
21#endif /* __NOISE_HPP__ */
Definition ITexture.hpp:8
Definition Noise.hpp:9
Utils::Color value(double u, double v, const Utils::Point3 &point) const override
Get the value of the noise texture.
Definition Noise.cpp:29
Noise(double scale)
Construct a new Noise object.
Definition Noise.cpp:13
Definition Perlin.hpp:9
Definition VecN.hpp:40