◆ Image()
Raytracer::Textures::Image::Image |
( |
std::string | filename | ) |
|
Construct a new Image object.
This function constructs a new Image object with the given filename.
- Parameters
-
filename | The filename of the image. |
- Returns
- A new Image object.
◆ value()
Get the value of the image texture.
This function returns the value of the image 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 image texture.
Implements Raytracer::Interfaces::ITexture.
The documentation for this class was generated from the following files:
- /Users/javii/Code/raytracer/include/textures/Image.hpp
- /Users/javii/Code/raytracer/sources/textures/Image.cpp