@pmndrs/reflections
    Preparing search index...

    Class ProbeSet

    Index
    atlas: GPUTexture
    atlases: readonly GPUTexture[]

    Every atlas, one per slot size (D4700): [atlas] unless slotSizes mixes sizes.

    atlasView: GPUTextureView
    atlasViews: readonly GPUTextureView[]
    bindGroup: GPUBindGroup
    bindGroupLayout: GPUBindGroupLayout
    capacity: number
    device: GPUDevice
    enabled: boolean = true

    Probes contribute (false while capturing, so captures see only the environment).

    environmentSlot: number

    Atlas slot of the environment, or -1.

    irradianceRow: number

    First row of the irradiance block.

    layout: ProbeLayout
    layouts: readonly ProbeLayout[]

    Each atlas's layout (same kind, its own mip count).

    maxLod: number

    Where each slot lives: its atlas and slot there (planProbeAtlases over slotSizes).

    refitClamp: number = 4

    Upper bound of the re-fit ratio.

    sampler: GPUSampler
    size: number
    sourceSize: number
    table: GPUBuffer
    • Records the prefilter of cube (slotSize(slot) px faces, mip 0 read) into atlas slot slot, through the capture transform's face remap if it has one.

      Parameters

      • encoder: GPUCommandEncoder
      • slot: number
      • cube: GPUTexture

      Returns void

    • Records the environment capture (the last slot).

      Parameters

      • encoder: GPUCommandEncoder
      • cube: GPUTexture

      Returns void

    • Records the L1 SH irradiance of slots (default: every volume's slot and the environment) into the table, for the re-fit. Run it after the captures, in their command buffer or later.

      Parameters

      • encoder: GPUCommandEncoder
      • Optionalslots: readonly number[]

      Returns void

    • The lookup module options of this set (see wgsl), for probeLookupWgsl([...]). With several atlases (slotSizes, D4700) atlas k is at atlasBinding + k - 1, default 3 (the set's own bind group); a module that binds the set's resources itself can move them.

      Parameters

      • __namedParameters: { atlasBinding?: number; group?: number; suffix?: string } = {}

      Returns ProbeLookupModuleOptions

    • Capture face size of slot slot (sourceSize unless slotSizes says otherwise; the environment's is sourceSize).

      Parameters

      • slot: number

      Returns number

    • The lookup module (see probeLookupWgsl): bindings 0..2 of @group(group), matching bindGroupLayout / bindGroup. suffix renames its entry points (probeRadiance<suffix>, ...); for several sets in one module, use probeLookupWgsl([a.lookupOptions(...), b.lookupOptions(...)]).

      Parameters

      • __namedParameters: { atlasBinding?: number; group?: number; suffix?: string } = {}

      Returns string