Antkeeper
0.0.1
|
Updates light probes. More...
#include <light-probe-stage.hpp>
Public Member Functions | |
light_probe_stage (gl::pipeline &pipeline, ::resource_manager &resource_manager) | |
Constructs a light probe stage. More... | |
void | execute (render::context &ctx) override |
Executes the render stage. More... | |
void | set_sh_sample_count (std::size_t count) |
Sets the number of samples to use when projecting luminance cubemaps into spherical harmonics. More... | |
void | set_cubemap_filter_sample_count (std::size_t count) |
Sets the number of samples to use when filtering luminance cubemap mip chains. More... | |
void | set_cubemap_filter_mip_bias (float bias) |
Sets the mip bias to use when filtering luminance cubemap mip chains. More... | |
std::size_t | get_sh_sample_count () const noexcept |
Returns the number of samples used when projecting luminance cubemaps into spherical harmonics. More... | |
std::size_t | get_cubemap_filter_sample_count () const noexcept |
Returns the number of samples used when filtering luminance cubemaps. More... | |
![]() | |
virtual | ~stage ()=default |
Destructs a render stage. More... | |
Updates light probes.
Definition at line 40 of file light-probe-stage.hpp.
render::light_probe_stage::light_probe_stage | ( | gl::pipeline & | pipeline, |
::resource_manager & | resource_manager | ||
) |
Constructs a light probe stage.
pipeline | Graphics pipeline. |
resource_manager | Resource manager for loading shader templates. |
std::runtime_error | Failed to build cubemap to spherical harmonics shader program. |
std::runtime_error | Cubemap to spherical harmonics shader program has no cubemap variable. |
std::runtime_error | Failed to build cubemap downsample shader program. |
std::runtime_error | Cubemap downsample shader program has no cubemap variable. |
std::runtime_error | Failed to build cubemap filter LUT shader program. |
std::runtime_error | Cubemap filter LUT shader program is missing one or more required shader variables. |
Definition at line 30 of file light-probe-stage.cpp.
|
overridevirtual |
Executes the render stage.
ctx | Render context. |
Implements render::stage.
Definition at line 125 of file light-probe-stage.cpp.
|
inlinenoexcept |
Returns the number of samples used when filtering luminance cubemaps.
Definition at line 99 of file light-probe-stage.hpp.
|
inlinenoexcept |
Returns the number of samples used when projecting luminance cubemaps into spherical harmonics.
Definition at line 93 of file light-probe-stage.hpp.
void render::light_probe_stage::set_cubemap_filter_mip_bias | ( | float | bias | ) |
Sets the mip bias to use when filtering luminance cubemap mip chains.
bias | Cubemap filter mip bias. |
execute()
.std::runtime_error | Failed to build cubemap filter LUT shader program. |
std::runtime_error | Cubemap filter LUT shader program is missing one or more required shader variables. |
Definition at line 318 of file light-probe-stage.cpp.
void render::light_probe_stage::set_cubemap_filter_sample_count | ( | std::size_t | count | ) |
Sets the number of samples to use when filtering luminance cubemap mip chains.
count | Cubemap filter sample count. |
Definition at line 309 of file light-probe-stage.cpp.
void render::light_probe_stage::set_sh_sample_count | ( | std::size_t | count | ) |
Sets the number of samples to use when projecting luminance cubemaps into spherical harmonics.
count | Spherical harmonics sample count. |
execute()
.std::runtime_error | Failed to build cubemap to spherical harmonics shader program. |
std::runtime_error | Cubemap to spherical harmonics shader program has no cubemap variable. |
Definition at line 300 of file light-probe-stage.cpp.