MobileRT  1.0
A multi platform C++ CPU progressive Ray Tracer.
MobileRT::Material Class Referencefinal

#include <Material.hpp>

Collaboration diagram for MobileRT::Material:
Collaboration graph

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
 
Materialoperator= (const Material &material)=default
 
Materialoperator= (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_ {}
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Material() [1/4]

MobileRT::Material::Material ( )
explicitdefault

◆ Material() [2/4]

MobileRT::Material::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 {} 
)
explicitnoexcept

◆ Material() [3/4]

MobileRT::Material::Material ( const Material material)
default

◆ Material() [4/4]

MobileRT::Material::Material ( Material &&  material)
defaultnoexcept

◆ ~Material()

MobileRT::Material::~Material ( )
default

Member Function Documentation

◆ operator=() [1/2]

Material& MobileRT::Material::operator= ( const Material material)
default

◆ operator=() [2/2]

Material& MobileRT::Material::operator= ( Material &&  material)
defaultnoexcept

◆ operator==()

bool Material::operator== ( const Material material) const

The operator equals. This method determine if a material is the same as this one.

Parameters
materialA material.
Returns
Whether the material is equal to this one.
Here is the call graph for this function:

Member Data Documentation

◆ Kd_

::glm::vec3 MobileRT::Material::Kd_ {}

The diffuse reflection.

◆ Ks_

::glm::vec3 MobileRT::Material::Ks_ {}

The specular reflection.

◆ Kt_

::glm::vec3 MobileRT::Material::Kt_ {}

The specular transmission.

◆ Le_

::glm::vec3 MobileRT::Material::Le_ {}

The emission light.

◆ refractiveIndice_

float MobileRT::Material::refractiveIndice_ {}

The refractive indice.

◆ texture_

Texture MobileRT::Material::texture_ {}

The texture of the material.


The documentation for this class was generated from the following files: