SimpleGL
1.1.0
A framework for platform independent rendering
|
This structure defines a light. More...
#include <lighting.hpp>
Public Attributes | |
glm::vec4 | ambient |
The ambient reflection factor. More... | |
glm::vec4 | diffuse |
The diffuse reflection factor. More... | |
glm::vec4 | specular |
The specular reflection factor. More... | |
glm::vec4 | position |
The light position. More... | |
glm::vec3 | direction |
The spot direction. More... | |
float | exponent |
The spot exponent. More... | |
float | cutOff |
The spot angle, in degrees. More... | |
float | constant |
The constant attenuation. More... | |
float | linear |
The linear attenuation. More... | |
float | quadratic |
The quadratic attenuation. More... | |
This structure defines a light.
Definition at line 43 of file lighting.hpp.
glm::vec4 sgl::Light::ambient |
The ambient reflection factor.
Definition at line 46 of file lighting.hpp.
float sgl::Light::constant |
The constant attenuation.
Definition at line 67 of file lighting.hpp.
float sgl::Light::cutOff |
The spot angle, in degrees.
Definition at line 64 of file lighting.hpp.
glm::vec4 sgl::Light::diffuse |
The diffuse reflection factor.
Definition at line 49 of file lighting.hpp.
glm::vec3 sgl::Light::direction |
The spot direction.
Definition at line 58 of file lighting.hpp.
float sgl::Light::exponent |
The spot exponent.
Definition at line 61 of file lighting.hpp.
float sgl::Light::linear |
The linear attenuation.
Definition at line 70 of file lighting.hpp.
glm::vec4 sgl::Light::position |
The light position.
Definition at line 55 of file lighting.hpp.
float sgl::Light::quadratic |
The quadratic attenuation.
Definition at line 73 of file lighting.hpp.
glm::vec4 sgl::Light::specular |
The specular reflection factor.
Definition at line 52 of file lighting.hpp.