◆ Checker() [1/2]
Construct a new Checker object.
This function constructs a new Checker object with the given scale, even texture, and odd texture.
- Parameters
-
scale | The scale of the checker texture. |
even | The even texture of the checker texture. |
odd | The odd texture of the checker texture. |
- Returns
- A new Checker object.
◆ Checker() [2/2]
Construct a new Checker object.
This function constructs a new Checker object with the given scale, even color, and odd color.
- Parameters
-
scale | The scale of the checker texture. |
a | The even color of the checker texture. |
b | The odd color of the checker texture. |
- Returns
- A new Checker object.
◆ value()
Get the value of the checker texture.
This function returns the value of the checker 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 checker texture.
Implements Raytracer::Interfaces::ITexture.
The documentation for this class was generated from the following files:
- /Users/javii/Code/raytracer/include/textures/Checker.hpp
- /Users/javii/Code/raytracer/sources/textures/Checker.cpp