Antkeeper
0.0.1
|
Renders cascaded shadow maps for directional lights. More...
#include <cascaded-shadow-map-stage.hpp>
Public Member Functions | |
cascaded_shadow_map_stage (gl::pipeline &pipeline, ::resource_manager &resource_manager) | |
Constructs a cascaded shadow map stage. More... | |
void | execute (render::context &ctx) override |
Executes the render stage. More... | |
void | set_max_bone_count (std::size_t bone_count) |
Sets the maximum bone count for shadow-casting skeletal meshes. More... | |
constexpr std::size_t | get_max_bone_count () const noexcept |
Returns the maximum bone count for shadow-casting skeletal meshes. More... | |
![]() | |
virtual | ~stage ()=default |
Destructs a render stage. More... | |
Renders cascaded shadow maps for directional lights.
Definition at line 39 of file cascaded-shadow-map-stage.hpp.
render::cascaded_shadow_map_stage::cascaded_shadow_map_stage | ( | gl::pipeline & | pipeline, |
::resource_manager & | resource_manager | ||
) |
Constructs a cascaded shadow map stage.
pipeline | Graphics pipeline. |
resource_manager | Resource manager for loading shader templates. |
Definition at line 47 of file cascaded-shadow-map-stage.cpp.
|
overridevirtual |
Executes the render stage.
ctx | Render context. |
Implements render::stage.
Definition at line 80 of file cascaded-shadow-map-stage.cpp.
|
inlineconstexprnoexcept |
Returns the maximum bone count for shadow-casting skeletal meshes.
Definition at line 62 of file cascaded-shadow-map-stage.hpp.
void render::cascaded_shadow_map_stage::set_max_bone_count | ( | std::size_t | bone_count | ) |
Sets the maximum bone count for shadow-casting skeletal meshes.
bone_count | Max bone count. |
Definition at line 119 of file cascaded-shadow-map-stage.cpp.