@pmndrs/reflections
    Preparing search index...

    Class ProbePrefilter

    Prefilters captured cubes of one face size into probe slots of a 2D array texture (rgba16float, size px layers, at least maxLod + 1 mips). Owns a scratch source cube and a scratch output, reused for every probe and every bake.

    Index
    maxLod: number
    size: number
    warp: boolean
    • Records the prefilter of source (a cube of size px faces, mip 0 read) into slot slot of target.

      Parameters

      • encoder: GPUCommandEncoder
      • source: GPUTexture
      • target: GPUTexture
      • slot: number

      Returns void