![]() |
AireEngine
A 3D Open-World Game Engine
|
Class to handle directional light shadows using shadow mapping with a depth map. More...
#include <shadows.h>
Public Member Functions | |
| DirectionalShadows (const GLuint shaderProg, Light light, GLuint width=4096, GLuint height=4096) | |
| Constructor for DirectionalShadows. | |
| ~DirectionalShadows () | |
| Destructor for DirectionalShadows. | |
Public Attributes | |
| GLuint | FBO |
| const GLuint | width |
| const GLuint | height |
| GLuint | shaderProg |
| GLuint | depthMap |
| glm::mat4 | lightSpaceMatrix |
Class to handle directional light shadows using shadow mapping with a depth map.
| DirectionalShadows::DirectionalShadows | ( | const GLuint | shaderProg, |
| Light | light, | ||
| GLuint | width = 4096, | ||
| GLuint | height = 4096 ) |
Constructor for DirectionalShadows.
| shaderProg | The shader program used for rendering. |
| light | The directional light for which shadows are generated. |
| width | The width of the shadow map texture. |
| height | The height of the shadow map texture. |
| GLuint Aire::DirectionalShadows::depthMap |
Depth map texture for shadow mapping.
| GLuint Aire::DirectionalShadows::FBO |
Framebuffer object for rendering to the depth map.
| glm::mat4 Aire::DirectionalShadows::lightSpaceMatrix |
Light space matrix for transforming coordinates.
| GLuint Aire::DirectionalShadows::shaderProg |
Shader program used for rendering.