Raytracer
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Raytracer::Textures::Noise Class Reference
Inheritance diagram for Raytracer::Textures::Noise:
Raytracer::Interfaces::ITexture

Public Member Functions

 Noise (double scale)
 Construct a new Noise object.
 
Utils::Color value (double u, double v, const Utils::Point3 &point) const override
 Get the value of the noise texture.
 

Constructor & Destructor Documentation

◆ 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
scaleThe scale of the noise texture.
Returns
A new Noise object.

Member Function Documentation

◆ value()

Raytracer::Utils::Color Raytracer::Textures::Noise::value ( double u,
double v,
const Utils::Point3 & point ) const
overridevirtual

Get the value of the noise texture.

This function returns the value of the noise texture at the given UV coordinates and point.

Parameters
uThe U coordinate.
vThe V coordinate.
pointThe point.
Returns
The value of the noise texture.

Implements Raytracer::Interfaces::ITexture.


The documentation for this class was generated from the following files: