Antkeeper  0.0.1
Public Member Functions | List of all members
render::cascaded_shadow_map_stage Class Reference

Renders cascaded shadow maps for directional lights. More...

#include <cascaded-shadow-map-stage.hpp>

Inheritance diagram for render::cascaded_shadow_map_stage:
render::stage

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...
 
- Public Member Functions inherited from render::stage
virtual ~stage ()=default
 Destructs a render stage. More...
 

Detailed Description

Renders cascaded shadow maps for directional lights.

Definition at line 39 of file cascaded-shadow-map-stage.hpp.

Constructor & Destructor Documentation

◆ cascaded_shadow_map_stage()

render::cascaded_shadow_map_stage::cascaded_shadow_map_stage ( gl::pipeline pipeline,
::resource_manager resource_manager 
)

Constructs a cascaded shadow map stage.

Parameters
pipelineGraphics pipeline.
resource_managerResource manager for loading shader templates.

Definition at line 47 of file cascaded-shadow-map-stage.cpp.

Member Function Documentation

◆ execute()

void render::cascaded_shadow_map_stage::execute ( render::context ctx)
overridevirtual

Executes the render stage.

Parameters
ctxRender context.

Implements render::stage.

Definition at line 80 of file cascaded-shadow-map-stage.cpp.

◆ get_max_bone_count()

constexpr std::size_t render::cascaded_shadow_map_stage::get_max_bone_count ( ) const
inlineconstexprnoexcept

Returns the maximum bone count for shadow-casting skeletal meshes.

Definition at line 62 of file cascaded-shadow-map-stage.hpp.

◆ set_max_bone_count()

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.

Parameters
bone_countMax bone count.
Warning
Triggers rebuilding of skeletal mesh shader.

Definition at line 119 of file cascaded-shadow-map-stage.cpp.


The documentation for this class was generated from the following files: