◆ Isotropic() [1/2]
Construct a new Isotropic object.
This function constructs a new Isotropic object with the given texture.
- Parameters
-
texture | The texture of the isotropic material. |
- Returns
- A new Isotropic object.
◆ Isotropic() [2/2]
Raytracer::Materials::Isotropic::Isotropic |
( |
const Utils::Color & | color | ) |
|
Construct a new Isotropic object.
This function constructs a new Isotropic object with the given color.
- Parameters
-
color | The color of the isotropic material. |
- Returns
- A new Isotropic object.
◆ emitted()
Emitted light of the isotropic material.
This function returns the emitted light of the isotropic material. The function returns the emitted light of the material at the given point.
- Parameters
-
u | The u texture coordinate. |
v | The v texture coordinate. |
point | The point to get the emitted light from. |
- Returns
- The emitted light of the isotropic material.
Implements Raytracer::Interfaces::IMaterial.
◆ scatter()
Scatter the ray with the isotropic material.
This function scatters the ray with the isotropic material. The function returns true if the ray is scattered. The function returns false if the ray is not scattered. The function updates the attenuation and scattered ray.
- Parameters
-
ray | The ray to scatter. |
payload | The payload of the ray. |
attenuation | The attenuation of the ray. |
scattered | The scattered ray. |
- Returns
- true if the ray is scattered, false otherwise.
Implements Raytracer::Interfaces::IMaterial.
The documentation for this class was generated from the following files:
- /Users/javii/Code/raytracer/include/materials/Isotropic.hpp
- /Users/javii/Code/raytracer/sources/materials/Isotropic.cpp