◆ Noise()
Raytracer::Textures::Noise::Noise |
( |
double | scale | ) |
|
Construct a new Noise object.
This function constructs a new Noise object with the given scale. The Noise texture is a texture that generates Perlin noise.
- Parameters
-
scale | The scale of the noise texture. |
- Returns
- A new Noise object.
◆ value()
Get the value of the noise texture.
This function returns the value of the noise texture at the given UV coordinates and point.
- Parameters
-
u | The U coordinate. |
v | The V coordinate. |
point | The point. |
- Returns
- The value of the noise texture.
Implements Raytracer::Interfaces::ITexture.
The documentation for this class was generated from the following files:
- /Users/javii/Code/raytracer/include/textures/Noise.hpp
- /Users/javii/Code/raytracer/sources/textures/Noise.cpp