TemporalSettings class final
Edges smoothed across frames — R1, R2.
The scene is drawn a fraction of a pixel off each frame, along a Halton(2, 3) sequence of sequenceLength offsets, and a resolve pass blends each frame into the history of the ones before it, reprojected through the motion the velocity passes measured. Sixteen frames of a still picture are sixteen samples of every pixel, which is what multisampling buys with memory and this buys with time.
It turns multisampling off, because the velocity pass reads the
surface buffer and the surface buffer cannot be multisampled; the frame
result says so through EffectiveAntiAliasing.temporal.
Off by default: a still frame on its own is as sharp as without it, but a frame one draws once — a golden, a thumbnail — would come out a fraction of a pixel off and never be resolved.
Constructors
- TemporalSettings({bool enabled = false, int sequenceLength = 16, double historyWeight = 0.9, double sharpen = 0.25, double reactive = 0.0, TemporalClip clip = TemporalClip.aabb})
-
The temporal resolve off, over a 16-frame jitter sequence with 0.9 of
the history kept.
const
Properties
- clip → TemporalClip
-
What the history is held to —
N4. TemporalClip.aabb, the box the resolve has always used, is the default.final - enabled → bool
-
Whether frames are jittered and resolved against their history. Off by
default.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- historyWeight → double
-
How much of each resolved pixel is history, from nought to one. Higher
is smoother and slower to follow change.
final
- reactive → double
-
How far particles, splats and blended surfaces cut the history under
them, from nought to one —
R4. Nought, the default, is off exactly: the pass that marks them is not run.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sequenceLength → int
-
How many offsets the jitter cycles through before it repeats. Sixteen
covers a pixel evenly enough that a still frame converges to within a
grey level of its 16× supersampled self.
final
-
Robust contrast-adaptive sharpening after the resolve, from nought to
one, to put back the softness a history always adds.
A 0..1 fraction.
final
Methods
-
copyWith(
{bool? enabled, int? sequenceLength, double? historyWeight, double? sharpen, double? reactive, TemporalClip? clip}) → TemporalSettings - Returns a copy with the given fields replaced; null leaves a field as it is.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override