Rendu
A lightweight rendering engine for experimentations
|
A cube shadow map array, can be used for point lights. Each face of the map is updated sequentially. The shadow map will register itself with the associated lights. More...
#include <BasicShadowMap.hpp>
Public Member Functions | |
BasicShadowMapCubeArray (const std::vector< std::shared_ptr< PointLight > > &lights, int side, ShadowMode mode) | |
void | draw (const Scene &scene) override |
More... | |
Public Member Functions inherited from ShadowMap | |
ShadowMap ()=default | |
virtual void | draw (const Scene &scene)=0 |
virtual | ~ShadowMap ()=default |
ShadowMap (const ShadowMap &)=delete | |
ShadowMap & | operator= (const ShadowMap &)=delete |
ShadowMap (ShadowMap &&)=default | |
ShadowMap & | operator= (ShadowMap &&)=delete |
Private Attributes | |
std::vector< std::shared_ptr< PointLight > > | _lights |
The associated lights. | |
Program * | _program |
Shadow program. | |
Texture | _map |
Shadow map result. | |
A cube shadow map array, can be used for point lights. Each face of the map is updated sequentially. The shadow map will register itself with the associated lights.
Inherits ShadowMap.
|
explicit |
Constructor.
lights | the lights to generate the associated shadow maps for |
side | the shadow map resolution |
mode | the type of shadow map technique used |
|
overridevirtual |