Scene::Material stores information about the material of a mesh
Definition at line 91 of file Scene.hpp.
Material |
( |
vec4 const & |
ambient, |
|
|
vec4 const & |
diffuse, |
|
|
vec4 const & |
specular, |
|
|
float const |
shininess, |
|
|
Texture * |
texture |
|
) |
| |
Constructs a Scene::Material.
- Parameters
-
ambient | The ambient reflectance of the BRDF |
diffuse | The diffuse reflectance of the BRDF |
specular | The specular reflectance of the BRDF |
shininess | The specular exponent of the BRDF |
texture | The texture of the material. Used for diffuse and ambient. If this is nullptr, no texture is used. |
Definition at line 689 of file Scene.cpp.
void bindTo |
( |
Shader * |
shader, |
|
|
string const |
uniform |
|
) |
| |
Binds this material to a uniform-block.
- Parameters
-
shader | The shader that hosts the uniform-block. It must be "used" first. |
uniform | The name of the uniform-block. |
Definition at line 710 of file Scene.cpp.
The texture of the material. Used for diffuse and ambient. If this is nullptr, no texture is used.
Definition at line 105 of file Scene.hpp.
The uniform buffer object that holds the material-data on the graphics-card
Definition at line 104 of file Scene.hpp.
The documentation for this class was generated from the following files: