◆ SolidColor() [1/2]
Raytracer::Textures::SolidColor::SolidColor |
( |
const Utils::Color & | albedo | ) |
|
Construct a new SolidColor object.
This function constructs a new SolidColor object with the given albedo. The SolidColor texture is a texture that generates a solid color.
- Parameters
-
albedo | The albedo of the solid color texture. |
- Returns
- A new SolidColor object.
◆ SolidColor() [2/2]
Raytracer::Textures::SolidColor::SolidColor |
( |
double | red, |
|
|
double | green, |
|
|
double | blue ) |
Construct a new SolidColor object.
This function constructs a new SolidColor object with the given red, green, and blue values. The SolidColor texture is a texture that generates a solid color.
- Parameters
-
red | The red value of the solid color texture. |
green | The green value of the solid color texture. |
blue | The blue value of the solid color texture. |
- Returns
- A new SolidColor object.
◆ value()
Get the value of the solid color texture.
This function returns the value of the solid color 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 solid color texture.
Implements Raytracer::Interfaces::ITexture.
The documentation for this class was generated from the following files:
- /Users/javii/Code/raytracer/include/textures/SolidColor.hpp
- /Users/javii/Code/raytracer/sources/textures/SolidColor.cpp