|
Unravel Engine C++ 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 |
Temporal accumulation parameters.
Definition at line 46 of file ssil_pass.h.
| 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.
| float unravel::ssil_pass::temporal_settings::history_strength = 0.9f |
Definition at line 48 of file ssil_pass.h.
| int unravel::ssil_pass::temporal_settings::max_accum_frames = 16 |
Definition at line 64 of file ssil_pass.h.
| 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.