Class MPSTemporalWeighting
- java.lang.Object
-
- apple.metalperformanceshaders.enums.MPSTemporalWeighting
-
public final class MPSTemporalWeighting extends java.lang.ObjectControls how samples are weighted over time
-
-
Field Summary
Fields Modifier and Type Field Description static longAverageCompute an average of all samples.static longExponentialMovingAverageCompute an exponential moving average by blending linearly between the previous accumulated samples and the current sample according to the temporalReprojectionBlendFactor property.
-
-
-
Field Detail
-
Average
public static final long Average
Compute an average of all samples. This will fully utilize all samples but may lead to excessive ghosting artifacts under motion. Therefore, this is best for static images.- See Also:
- Constant Field Values
-
ExponentialMovingAverage
public static final long ExponentialMovingAverage
Compute an exponential moving average by blending linearly between the previous accumulated samples and the current sample according to the temporalReprojectionBlendFactor property. This will cause older samples to lose their contribution over time, which will prevent ghosting artifacts but will also never converge to a stable value. Therefore, this is best for images with motion.- See Also:
- Constant Field Values
-
-