Class for a material with lambert brdf.
More...
#include <LambertMaterial.h>
Class for a material with lambert brdf.
◆ LambertMaterial() [1/2]
LambertMaterial::LambertMaterial |
( |
std::shared_ptr< Shader > |
shader, |
|
|
glm::vec3 |
ambient, |
|
|
glm::vec3 |
diffuse, |
|
|
glm::vec3 |
specular, |
|
|
float |
specularCoefficient |
|
) |
| |
Construct material with lambert brdf.
- Parameters
-
shader | Shader that is used to draw this material. |
ambient | Ambient color. |
diffuse | Diffuse color. |
specular | Specular color. |
specularCoefficient | specular coeffiecent, sometimes also called shineness. |
◆ LambertMaterial() [2/2]
LambertMaterial::LambertMaterial |
( |
std::shared_ptr< Shader > |
shader | ) |
|
Construut material with lambert brdf with default parameters.
- Parameters
-
shader | Shader that is used to draw this material. |
◆ setColor()
void LambertMaterial::setColor |
( |
glm::vec3 |
color | ) |
|
|
virtual |
Sets the base color of this material
- Parameters
-
◆ setUniforms()
void LambertMaterial::setUniforms |
( |
| ) |
|
|
virtual |
Sets all material related uniforms in the shader of this material.
Reimplemented from Material.
The documentation for this class was generated from the following files: