VisPro  1.0
Project of Visualisierung 2
BlinnPhongShader Class Reference

#include <BlinnPhongShader.h>

Inheritance diagram for BlinnPhongShader:
Shader

Public Member Functions

 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)
 
- Public Member Functions inherited from Shader
 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)
 

Additional Inherited Members

- Public Attributes inherited from Shader
GLuint programHandle
 

Detailed Description

blinn phong shader.

Constructor & Destructor Documentation

BlinnPhongShader::BlinnPhongShader ( glm::vec3  amb_col,
glm::vec3  diff_col,
glm::vec3  spec_col,
float  shin,
float  transp 
)

Constructor.

Parameters
amb_colambient color
diff_coldiffuse color
spec_colspecular color
shinshininess
transptransparency

Member Function Documentation

void BlinnPhongShader::setLighting ( std::vector< std::shared_ptr< PointLight >> *  allLights)
virtual

Set point lights in shader.

Parameters
allLightsset of point lights

Reimplemented from Shader.


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