Per baked probe: the index in textures of the atlas holding it (D4700).
The environment's slot in textures[0] (after the probes that live there).
The storage the current texture uses ('cube2d' before the first bake).
The probes in baked order, smallest volume first.
Face size of each of textures.
The seam fix the current texture was baked with (the node samples to match); 'none' on cube arrays.
Per baked probe: its slot (cube index) within that atlas.
Whether the probes use box projection.
Whether a bake is in progress. Probes then contribute only the environment.
L1 SH radiance coefficients per slot (3 vec4 rows each, core's table layout), from the last bake; null before.
Bumped when irradiance is recomputed.
ReadonlyisStorage of the next bake (not in #35046, which always uses a cube array): 'auto' (default) a
CubeArrayTexture when the renderer can bind one (three with #35053, or after
await installCubeArraySupport( renderer )), else the 2D array; 'cube-array' requires it (the bake
throws without it); 'cube2d' always the 2D array. bakedLayout is what the bake chose.
Upper bound of the re-fit ratio frameIrradiance / probeIrradiance (lookups with frameIrradiance).
Face-edge handling of the manual cube lookup on the 2D-array storage (not in #35046, see the file header). A no-op on cube arrays (hardware filtering is seamless). Re-bake after changing it.
The baked texture: one cube per probe, then one for the environment; mips = roughness. A
CubeArrayTexture when bakedLayout is 'cube-array', else a 2D array texture of 6 layers per cube.
With probes of several resolutions (D4700) this is the set default's atlas (its probes and the
environment), textures[0]; the others are in textures.
Every atlas of the last bake, one per probe resolution (D4700): [texture] when every probe
uses the set default. Same storage and seam fix for all; each has its own size and mips.
Lagarde 2014's distance-based roughness on box-projected probes (not in #35046, D53): a glossy
lookup is sharp where the surface is near the projection box and keeps its roughness from the
capture point's distance on, r' = mix( clamp( dHit / dCapture * r, 0, r ), r, r ), as an SSR
hit there would be. Default true. The default of every lookup of this set (reflectionProbes(),
sampleReflectionProbes(), the hybrid composite), so lit and composite agree; a lookup's own
distanceRoughness option overrides it. Changing it rebuilds the set's nodes (an environment
node at once; a composite on its next rebuild). Not in #35046 (set it false for #35046's look).
Roughness to mip for every lookup of this set (core's lodMapping, D101): 'alpha' (default)
blends linearly in roughness^2 between the sharp mips (both below r = 0.3), which halves the
error against a GGX reference there (p99 at r .05: 44.5 -> 19.7 / 255 at 128 px, 35.4 -> 21.9
at 256 px, W7); above, the same as 'r187', three r187's PMREM mapping maxLod * r * (2 - r)
everywhere (#35046's, so set 'r187' for #35046's look). A lookup's own lodMapping option
overrides it. Changing it rebuilds the set's nodes, like distanceRoughness.
Lagarde 2014's lerp of the box-projected direction back toward the unprojected one by roughness (Appendix F, D53): rough lookups lose the parallax a centre-convolved probe can't honour. The set-wide default, like distanceRoughness. Default false: it narrowed the SSR-to-probe step on glossy floors but moved every showcase stage away from the path-traced reference (W26).
Captures the probes and scene.environment into the array (see BakeOptions for which
ones). Hide helpers and objects that should not appear in reflections first. Reuses the array,
the capture cube and the prefilter between bakes of the same layout, so re-baking every frame
neither allocates nor changes the texture materials sample.
Frees the GPU resources allocated by this instance.
The storage a bake on renderer uses (see layout).
Registers a node that samples this set. A bake that replaces the texture (a new layout) marks it for rebuild, so static meshes rebind the new texture on the next frame; r186/r187 don't rebind unchanged render objects on its own. Called by ReflectionProbesNode.
A set of ReflectionProbe children baked into one texture. Assign
reflectionProbes( probes )toscene.environmentNode. Smaller volumes take priority over larger ones; uncovered surfaces fall back toscene.environment. WebGPU backend only.