Raytracer
Loading...
Searching...
No Matches
include
textures
Noise.hpp
1
#include "interfaces/ITexture.hpp"
2
#include "utils/Perlin.hpp"
3
4
#ifndef __NOISE_HPP__
5
#define __NOISE_HPP__
6
7
namespace
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);
16
Utils::Color
value
(
17
double
u,
double
v,
const
Utils::Point3
&point)
const override
;
18
};
19
}
// namespace Raytracer::Textures
20
21
#endif
/* __NOISE_HPP__ */
Raytracer::Interfaces::ITexture
Definition
ITexture.hpp:8
Raytracer::Textures::Noise
Definition
Noise.hpp:9
Raytracer::Textures::Noise::value
Utils::Color value(double u, double v, const Utils::Point3 &point) const override
Get the value of the noise texture.
Definition
Noise.cpp:29
Raytracer::Textures::Noise::Noise
Noise(double scale)
Construct a new Noise object.
Definition
Noise.cpp:13
Raytracer::Utils::Perlin
Definition
Perlin.hpp:9
Raytracer::Utils::VecN
Definition
VecN.hpp:40
Generated by
1.10.0