13#ifndef GRAPHICS_GSHADOWMAP_H_
14#define GRAPHICS_GSHADOWMAP_H_
48 void setLightProjection(
float leftx,
float rightx,
float fronty,
float backy,
float nearz,
float farz);
60 bool isallocated, isactivated, isenabled;
63 glm::mat4 lightprojection, lightview, lightmatrix;
64 glm::vec3 lightposition;
67 int shadowmaptextureslot;
70 unsigned int vkdepthtextureid;
71 void allocateVulkanResources();
72 void releaseVulkanResources();
gLight * getLight() const
glm::mat4 getLightMatrix() const
void allocate(gLight *light, gCamera *camera, int width=4096, int height=4096)
gCamera * getCamera() const
void setLight(gLight *light)
void setLightProjection(float leftx, float rightx, float fronty, float backy, float nearz, float farz)
void setLightProjection(glm::mat4 lightProjection)
void setLightView(glm::mat4 lightView)
void bindVulkanShadowMap(int slot=1)
glm::mat4 getLightProjection() const
void setCamera(gCamera *camera)
glm::mat4 getLightView() const
unsigned int getVulkanDepthTextureId() const