Unravel Engine C++ Reference
|
Performs GGX prefiltering on six 2D face textures to produce a filtered cubemap. More...
#include <prefilter_pass.h>
Classes | |
struct | run_params |
Public Member Functions | |
auto | init (rtti::context &ctx) -> bool |
Initialize shaders. Call once after bgfx::init() and asset registration. | |
auto | run (const run_params ¶ms) -> gfx::texture::ptr |
Execute prefilter. Returns the filtered cubemap (output_cube or created internally). | |
auto | run_compute (const run_params ¶ms) -> gfx::texture::ptr |
Execute prefilter using compute shader. Returns the filtered cubemap. | |
Performs GGX prefiltering on six 2D face textures to produce a filtered cubemap.
Definition at line 13 of file prefilter_pass.h.
auto unravel::prefilter_pass::init | ( | rtti::context & | ctx | ) | -> bool |
Initialize shaders. Call once after bgfx::init() and asset registration.
Definition at line 10 of file prefilter_pass.cpp.
auto unravel::prefilter_pass::run | ( | const run_params & | params | ) | -> gfx::texture::ptr |
Execute prefilter. Returns the filtered cubemap (output_cube or created internally).
Definition at line 23 of file prefilter_pass.cpp.
auto unravel::prefilter_pass::run_compute | ( | const run_params & | params | ) | -> gfx::texture::ptr |
Execute prefilter using compute shader. Returns the filtered cubemap.
Definition at line 28 of file prefilter_pass.cpp.