![]() |
AireEngine
A 3D Open-World Game Engine
|
Class to handle point light shadows using shadow mapping with cubemaps. More...
#include <shadows.h>
Public Member Functions | |
| PointShadows (const GLuint shaderProg, const std::vector< Light > &lights, GLuint width=4096, GLuint height=4096) | |
| Constructor for PointShadows. | |
| ~PointShadows () | |
| Destructor for PointShadows. | |
Public Attributes | |
| GLuint | FBO |
| const GLuint | width |
| const GLuint | height |
| GLuint | shaderProg |
| std::vector< Light > | lights |
| std::vector< unsigned int > | depthCubemaps |
| std::vector< std::vector< glm::mat4 > > | shadowTransforms |
| const float | farPlane = 25.0f |
Class to handle point light shadows using shadow mapping with cubemaps.
| PointShadows::PointShadows | ( | const GLuint | shaderProg, |
| const std::vector< Light > & | lights, | ||
| GLuint | width = 4096, | ||
| GLuint | height = 4096 ) |
Constructor for PointShadows.
| shaderProg | The shader program used for rendering. |
| lights | A vector containing the point lights for which shadows are generated. |
| width | The width of the shadow map texture. |
| height | The height of the shadow map texture. |
| GLuint Aire::PointShadows::FBO |
Framebuffer object for rendering to shadow maps.
| std::vector<Light> Aire::PointShadows::lights |
Vector containing point lights.
| GLuint Aire::PointShadows::shaderProg |
Shader program used for rendering.
| std::vector<std::vector<glm::mat4> > Aire::PointShadows::shadowTransforms |
Shadow transformation matrices.