Sample History

Reconstructing a stable high-resolution output by blending the current frame with historical pixel data.

Reprojection: Using the Motion Vectors generated in the previous pass, we look up where the current pixel was in the previous frame.

Clamping: To prevent "ghosting" (trails behind moving objects), the historical sample is mathematically clamped to the color range of the current local 3x3 neighborhood.

// Initial state updateUI(0); }, 500); });