MobileRT
1.0
A multi platform C++ CPU progressive Ray Tracer.
|
#include <Material.hpp>
Public Member Functions | |
Material ()=default | |
Material (const ::glm::vec3 &kD, const ::glm::vec3 &kS=::glm::vec3 {}, const ::glm::vec3 &kT=::glm::vec3 {}, float refractiveIndice=1.0F, const ::glm::vec3 &lE=::glm::vec3 {}, Texture texture=Texture {}) noexcept | |
Material (const Material &material)=default | |
Material (Material &&material) noexcept=default | |
~Material ()=default | |
Material & | operator= (const Material &material)=default |
Material & | operator= (Material &&material) noexcept=default |
bool | operator== (const Material &material) const |
Public Attributes | |
::glm::vec3 | Le_ {} |
::glm::vec3 | Kd_ {} |
::glm::vec3 | Ks_ {} |
::glm::vec3 | Kt_ {} |
float | refractiveIndice_ {} |
Texture | texture_ {} |
A class which represents the material of a primitive in the scene.
A material consists of the type of interactions that a light does when it hits the object.
|
explicitdefault |
|
explicitnoexcept |
|
default |
|
defaultnoexcept |
|
default |
bool Material::operator== | ( | const Material & | material | ) | const |
The operator equals. This method determine if a material is the same as this one.
material | A material. |
::glm::vec3 MobileRT::Material::Kd_ {} |
The diffuse reflection.
::glm::vec3 MobileRT::Material::Ks_ {} |
The specular reflection.
::glm::vec3 MobileRT::Material::Kt_ {} |
The specular transmission.
::glm::vec3 MobileRT::Material::Le_ {} |
The emission light.
float MobileRT::Material::refractiveIndice_ {} |
The refractive indice.
Texture MobileRT::Material::texture_ {} |
The texture of the material.