@pmndrs/reflections
    Preparing search index...

    Interface BakeOptions

    interface BakeOptions {
        bounces?: number;
        environment?: boolean | "always";
        exclude?: Object3D<Object3DEventMap>[];
        far?: number;
        irradiance?: boolean;
        near?: number;
        probes?: ReflectionProbe[];
        resolution?: number;
    }
    Index
    bounces?: number

    Capture passes (not in #35046; the interior branch's bounces, D25). 2 (default, D4300): a first pass whose captures see the scene lit without local probes (capturing switches them off), then one more pass over the captured probes rendered with every probe looking up the first pass's atlas, so a captured wall gets the room's bounce light and a captured mirror or glossy surface reflects the room instead of the environment slot (a frozen copy: each pass prefilters into a scratch texture and copies it in when the pass is done, so the result doesn't depend on probe order). n > 2 adds passes the same way. Each pass costs one bake of those probes, so 2 doubles the bake: scenes without mirrors or glossy surfaces facing each other (and live, per-frame bakes) can use 1 to halve it; their probes then lack the interreflection (D3200: 1 -> 2 changes the rooms by mean 5.6-6.4 / 255, p99 42-49). With probes (a time-sliced bake), every pass covers only the slice, so a sliced 2-bounce bake differs from a full one (the slice's second pass sees the other probes' last bake): slice with 1.

    environment?: boolean | "always"

    The fallback slot (not in #35046). true (default): capture scene.environment when it changed since the last bake (another texture, or its version / pmremVersion moved) or the layout changed. 'always': capture it every bake, for an environment whose content changes without a version bump (a render target's texture). false: leave the slot black; use it when the probes' influence covers every surface that samples them.

    exclude?: Object3D<Object3DEventMap>[]

    Objects hidden from the captures and restored after (not in #35046; Unity's culling mask, UE's "visible in reflection captures"). Put moving mirrors and other sharp reflectors here when baking live: a mirror captured into the probes reflects the probes back, and that loop flickers. Objects with userData.reflectionProbeExclude = true are hidden too.

    far?: number

    Far plane of the capture camera. Default 100.

    irradiance?: boolean

    Compute each slot's L1 SH irradiance from its capture after the bake (core ProbeIrradiance), for the re-fit (frameIrradiance lookup option). One small dispatch per slot. Default true.

    near?: number

    Near plane of the capture camera. Default 0.1.

    probes?: ReflectionProbe[]

    Capture only these probes and keep the others' slots, for example to spread a live update over several frames (the maintainer's fork, 37bf331235). Ignored, and every probe captured, when the bake changes the layout (resolution, seam fix, or the set or order of probes).

    resolution?: number

    Cube face size, rounded down to a power of two, at least 64. Default 256 (as #35046; D23, D62).

    Sizing: the sharpest material that samples a probe sets its size. 256 for mirror-grade probes (polished floors, mirrors, metal below roughness ~0.2: Lagarde 2014's minimum for mirror-like surfaces, Godot's default); 128 when many probes share the scene or on mobile (a quarter of the memory and bake time; Godot's mobile size), and for probes that only glossy or rough surfaces see. Memory per probe (rgba16f, 6 faces, all mips): ~16.8 MB at 512, ~4.2 MB at 256, ~1.0 MB at 128. Bake time grows about 2x from 128 to 256 (W31: 3 probes ~2.3 -> ~4 ms). Whether many small probes beat a few large ones at equal memory is open (docs/HANDOFF.md fine-tune backlog, "Probe count vs resolution").

    This is the set's default: a probe's own ReflectionProbe.resolution overrides it (D4700), so one probe that holds fine detail (a floor under a thin emissive, a mirror) can be 512 while the rest stay 256. The environment slot always takes this size.