Small World Engine API Reference - v0.76.20
    Preparing search index...

    Class HistoryBlendPassGL

    Generic exponential history blend for WebGL2: blends the current frame with a ping-ponged history buffer holding the previous frame's resolved result. Shared by two different effects that both reduce to "blend with last frame's output" -- TAA (TaaElement, current frame is jittered, low feedback) and the deliberate MotionTrailElement ghost/afterimage look (current frame is not jittered, high feedback). No motion vectors either way, so this only reads as clean anti-aliasing in static/slow scenes for the TAA case.

    Index
    • Resolves the current frame against history.

      Parameters

      • currentTexture: WebGLTexture
      • width: number
      • height: number
      • config: { feedback: number }

      Returns WebGLTexture | null

      This frame's resolved HDR texture (becomes history for the next call), or null if unavailable.