64 cache_uniform(program.get(), s_curr,
"s_curr", gfx::uniform_type::Sampler);
65 cache_uniform(program.get(), s_history,
"s_history", gfx::uniform_type::Sampler);
66 cache_uniform(program.get(), s_depth,
"s_depth", gfx::uniform_type::Sampler);
67 cache_uniform(program.get(), u_prev_view_proj,
"u_prev_view_proj", gfx::uniform_type::Mat4);
68 cache_uniform(program.get(), u_taa_params,
"u_taa_params", gfx::uniform_type::Vec4);
76 std::unique_ptr<gpu_program> program;
std::shared_ptr< frame_buffer > ptr
Class representing a camera. Contains functionality for manipulating and updating a camera....
HDR temporal anti-aliasing resolve (depth reprojection). Phase 2: optional velocity buffer.
auto init(rtti::context &ctx) -> bool
void release_resources(gfx::render_view &rview)
auto run(gfx::render_view &rview, const run_params ¶ms) -> gfx::frame_buffer::ptr
taa_jitter_mode
Subpixel jitter sequence for temporal AA (see camera::set_aa_data).
std::shared_ptr< uniform > uniform_ptr
gfx::frame_buffer::ptr output
gfx::frame_buffer::ptr input
gfx::frame_buffer::ptr g_buffer
float sharpen
Unsharp on current neighborhood; keep low to avoid edge shimmer.
float jitter_temporal_phase_scale
std::uint32_t temporal_sample_count
Enable jitter when greater than 1 (full render frame index drives the sequence).
float variance_clip_scale
Standard deviations for RGB variance clip (typical 1.0–1.75).
taa_jitter_mode jitter_mode
Subpixel offset sequence (see taa_jitter_mode); passed to camera each frame.
float history_blend
Blend toward clipped history (lower = less gray cast, slightly more aliasing).
float jitter_amplitude
Scales jitter before projection (1 = full ~±½ pixel). Lower = less whole-screen shake,...