• Merged texture update, called upon each pass.

    Copies the active pass's output into the merged texture, from each of its framebuffer attachments one by one (to support multiple draw buffers). Matches the lookup logic defined in macroTaps.

    Parameters

    • state: {
          passes: {
              color: texture[];
              map: number[];
          }[][];
          merge: any;
          stepNow: undefined | number;
      }

      A gpgpu state of the active pass.

      • passes: {
            color: texture[];
            map: number[];
        }[][]

        Passes per step; any active one's found via getPass, with:

        • color: array of data-textures.
        • map: array of numbers, showing how the textures are grouped per-pass. See getPass, toData, and mapGroups.
      • merge: any

        The merged texture to update.

      • stepNow: undefined | number

        The currently active state step, if any.

    Returns texture

    The merged texture, updated by the active pass's output; matches the lookup logic defined in macroTaps.

    Update docs.