AutoMovie API
    Preparing search index...

    Function productionRenderLayersForPass

    • The layers one render pass draws for one film frame.

      Beauty is alpha-composited, so the beauty pass gets every layer with its weight. A structural guide pass carries classifications or geometric fields, where linearly blending pixels invents values no layer holds, so it gets only the heaviest layer, with weight 1; on an exact tie the later layer wins, which is the incoming shot because sampleProductionRenderFrame lists the outgoing layer first. Every result is a deep copy, so a caller mutating it cannot alter the frame another pass reads. A guide pass over an empty layer list throws a TypeError; a sampled film frame always has at least one.

      Type Parameters

      • Layer extends { weight: number }

      Parameters

      Returns (Omit<Layer, "weight"> & { weight: number })[]

      New layers for the pass: all of them for beauty, one otherwise.