shadowmapshader
December 8, 2022 ยท View on GitHub
Interface for shaders used to fill shadow maps.
Members
draw_to_texture
virtual void draw_to_texture(GLuint texture, const glm::mat4 & light_space_matrix, const draw_params & params) noexcept = 0;
Draws objects to the shadow map.
draw
void draw(const directional_light & light, const draw_params & params) noexcept;
void draw(const spot_light & light, const draw_params & params) noexcept;
Draws objects to light's shadow map.