|
AGL
0
3D graphics library
|
Classes | |
| class | Light |
| Light, adds reality to the scene. More... | |
Functions | |
| Light | DirectionalLight (const glm::vec3 &dir=glm::vec3(0), const glm::vec4 &color=glm::vec4(1)) |
| Create a directional Light. More... | |
| Light | DirectionalLight (const glm::vec3 &dir=glm::vec3(0), float r=1, float g=1, float b=1, float a=1) |
| Create a directional Light. See DirectionalLight. More... | |
|
inline |
Create a directional Light.
| dir | Direction of light. |
| color | Color of light. |
In a directional light, the Light::position is actually the direction of the light (positioned at infinity).
|
inline |
Create a directional Light. See DirectionalLight.
| dir | Direction of light. |
| r | Red. |
| g | Green. |
| b | Blue. |
| a | Alpha. |