Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::prefilter_pass Class 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 (gfx::render_view &rview, const run_params &params) -> gfx::texture::ptr
 Execute prefilter. Returns the filtered cubemap (output_cube or created internally).
 
auto run_compute (gfx::render_view &rview, const run_params &params) -> gfx::texture::ptr
 Execute prefilter using compute shader. Returns the filtered cubemap.
 

Detailed Description

Performs GGX prefiltering on six 2D face textures to produce a filtered cubemap.

Definition at line 14 of file prefilter_pass.h.

Member Function Documentation

◆ init()

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.

◆ run()

auto unravel::prefilter_pass::run ( gfx::render_view & rview,
const run_params & params ) -> gfx::texture::ptr

Execute prefilter. Returns the filtered cubemap (output_cube or created internally).

Definition at line 19 of file prefilter_pass.cpp.

◆ run_compute()

auto unravel::prefilter_pass::run_compute ( gfx::render_view & rview,
const run_params & params ) -> gfx::texture::ptr

Execute prefilter using compute shader. Returns the filtered cubemap.

Definition at line 24 of file prefilter_pass.cpp.


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