#include <BlinnPhongShader.h>
|
| BlinnPhongShader (glm::vec3 amb_col, glm::vec3 diff_col, glm::vec3 spec_col, float shin, float transp) |
|
virtual void | setLighting (std::vector< std::shared_ptr< PointLight >> *allLights) |
|
| Shader (const std::string &vertexShader, const std::string &fragmentShader) |
|
| Shader (const std::string &vertexShader, const std::string &geometryShader, const std::string &fragmentShader) |
|
void | useShader () const |
|
void | setCutawayDimension (glm::vec2 dim) |
|
virtual void | bindTexture (int unit) |
|
BlinnPhongShader::BlinnPhongShader |
( |
glm::vec3 |
amb_col, |
|
|
glm::vec3 |
diff_col, |
|
|
glm::vec3 |
spec_col, |
|
|
float |
shin, |
|
|
float |
transp |
|
) |
| |
Constructor.
- Parameters
-
amb_col | ambient color |
diff_col | diffuse color |
spec_col | specular color |
shin | shininess |
transp | transparency |
void BlinnPhongShader::setLighting |
( |
std::vector< std::shared_ptr< PointLight >> * |
allLights | ) |
|
|
virtual |
Set point lights in shader.
- Parameters
-
allLights | set of point lights |
Reimplemented from Shader.
The documentation for this class was generated from the following files: