Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::ssil_pass::temporal_settings Struct Reference

Temporal accumulation parameters. More...

#include <ssil_pass.h>

Public Attributes

float history_strength = 0.9f
 
float depth_threshold = 0.2f
 
float normal_dot_threshold = 0.6f
 
int max_accum_frames = 16
 

Detailed Description

Temporal accumulation parameters.

Definition at line 46 of file ssil_pass.h.

Member Data Documentation

◆ depth_threshold

float unravel::ssil_pass::temporal_settings::depth_threshold = 0.2f

Relative view-space depth tolerance for temporal disocclusion (fraction of linear depth). The shader rejects history when |expected - stored| / stored exceeds this, so it is scale-invariant (same value works near and far).

Definition at line 52 of file ssil_pass.h.

◆ history_strength

float unravel::ssil_pass::temporal_settings::history_strength = 0.9f

Definition at line 48 of file ssil_pass.h.

◆ max_accum_frames

int unravel::ssil_pass::temporal_settings::max_accum_frames = 16

Definition at line 64 of file ssil_pass.h.

◆ normal_dot_threshold

float unravel::ssil_pass::temporal_settings::normal_dot_threshold = 0.6f

Minimum dot(n_current, n_at_reprojected_uv) to accept history. Catches the common disocclusion case where reprojection lands on a different surface (rotated geometry, animated foliage) which the depth-only test misses.

MIDPOINT of the soft-fall-off band in the temporal shader, not a hard cutoff (the shader applies a smoothstep with +/-0.1 width). 0.6 ~ 53 deg midpoint gives full history weight at <=45 deg normal mismatch (covers curved-surface reprojection drift) and zero weight at >60 deg (clearly-different surface). Higher values are stricter (more rejections, more edge speckle on motion); lower values are more lenient (occasional ghosting on rotated geometry).

Definition at line 63 of file ssil_pass.h.


The documentation for this struct was generated from the following file: