Basic class to store material information for texturing and light computation.
More...
#include <Component.hpp>
|
| Material ()=default |
| Instances basic material.
|
| Material (const glm::vec3 &ambient, const glm::vec3 &diffuse, const glm::vec3 &specular, const float shininess, const std::string &name) |
| Instances a material with the given data.
|
bool | operator== (const Material &other) |
| Overrides the equal operator, two materials are equal if they have the same name.
|
|
glm::vec3 | ambient {0.f} |
| ambient vector
|
glm::vec3 | diffuse {0.55f} |
| diffuse vector
|
glm::vec3 | specular {0.7f} |
| specular vector
|
float | shininess = 32.f |
| material shininess
|
std::string | name {"New Material"} |
| material name
|
Basic class to store material information for texturing and light computation.
◆ Material()
Material::Material |
( |
const glm::vec3 & | ambient, |
|
|
const glm::vec3 & | diffuse, |
|
|
const glm::vec3 & | specular, |
|
|
const float | shininess, |
|
|
const std::string & | name ) |
|
inline |
Instances a material with the given data.
- Parameters
-
ambient | a glm::vec3 vector |
diffuse | a glm::vec3 vector |
specular | a glm::vec3 vector |
shininess | material' shininess value |
name | material's name |
◆ operator==()
bool Material::operator== |
( |
const Material & | other | ) |
|
|
inline |
Overrides the equal operator, two materials are equal if they have the same name.
- Parameters
-
The documentation for this class was generated from the following file: