1 #ifndef DIFFUSELIGHT_HPP 2 #define DIFFUSELIGHT_HPP 39 GLfloat x, GLfloat y, GLfloat z, GLfloat diffuseIntensity);
59 void update(GLuint ambientIntensityLocation, GLuint ambientColorLocation,
60 GLuint diffuseIntensityLocation, GLuint directionLocation);
71 #endif // DIFFUSELIGHT_HPP GLfloat m_ambientIntensity
Intensity value for the ambient lighting.
Definition: DiffuseLight.hpp:64
DiffuseLight()
Default constructor - this is probably not the constructor you want to use - see below.
Definition: DiffuseLight.hpp:22
Class for creating an OpenGL diffuse light.
Definition: DiffuseLight.hpp:14
void update(GLuint ambientIntensityLocation, GLuint ambientColorLocation, GLuint diffuseIntensityLocation, GLuint directionLocation)
Use an OpenGL diffuse light source.
glm::vec3 m_direction
The direction that the light points.
Definition: DiffuseLight.hpp:65
glm::vec4 m_color
Color of the ambient lighting.
Definition: DiffuseLight.hpp:63
GLfloat m_diffuseIntensity
Intensity value for the diffuse lighting.
Definition: DiffuseLight.hpp:66