@pmndrs/reflections
    Preparing search index...

    Class AccumulateNode

    Running average of a per-pixel node over frames (ping-pong half-float targets). count = frames accumulated so far; set it to 0 to restart. Stops rendering once max frames are in (the result then stays put). With minWeight > 0 it becomes an exponential moving average that never stops.

    Hierarchy

    • TempNode
      • AccumulateNode
    Index
    count: UniformNode<"float", number> = ...
    max: number = 128
    • get renderTargets(): RenderTarget<
          Texture<unknown, TextureEventMap>,
          RenderTargetEventMap,
      >[]

      Returns RenderTarget<Texture<unknown, TextureEventMap>, RenderTargetEventMap>[]

    • Calling this method dispatches the dispose event. This event can be used to register event listeners for clean up tasks.

      Returns void

    • Represents the setup stage which is the first step of the build process, see Node#build method. This method is often overwritten in derived modules to prepare the node which is used as a node's output/result. If an output node is prepared, then it must be returned in the return statement of the derived module's setup function.

      Returns TextureNode<"vec4">

      The output node.

    • The method can be implemented to update the node's internal state before it is used to render an object. The Node#updateBeforeType property defines how often the update is executed.

      Parameters

      • frame: any

        A reference to the current node frame.

      Returns undefined

      An optional bool that indicates whether the implementation actually performed an update or not (e.g. due to caching).