OptionalatlasOptionalatlasesAtlases the set's captures live in, one per resolution class (D4700), all of layout's kind
(each its own size and mip count: the table's row 2 holds each one's maxLod, a volume's row +4.w
its atlas). Atlas 0 holds the environment slot. Default 1: the one-atlas lookup, unchanged.
At most 4 (PROBE_MAX_ATLASES).
OptionalbindingFirst binding index (atlas; sampler +1, table +2). Default 0.
OptionalcaptureHow the atlas's captures relate to WebGPU's cube convention (./capture.ts, D1805). The lookup
applies its axes to every world direction (its faces act at capture time only). Default:
none. Not together with mirrorX.
OptionalcountThe table's volume count, known at compile time (an engine that recompiles when the probe count changes: three). Up to PROBE_UNROLL_MAX_VOLUMES the walk is unrolled for exactly this many volumes (the table's count is then ignored; the runtime loop measured ~1.5x the lookup cost at a few volumes, W7 / W63); above, the lookup walks the table's volume grid as without it (W63, D4950: unrolled, the cost grows faster than the count). Default: the grid walk.
OptionaldistanceLagarde 2014's distance-based roughness on box-projected volumes (Listing 25, D53): the roughness shrinks toward contact with the projection box, by the ratio of P's and the capture point's distances to the box hit. Default false.
OptionaldominantLagarde's dominant direction (D57). Default false.
OptionalframeWGSL defining fn frameIrradiance(P: vec3f, N: vec3f) -> vec3f, the frame's irradiance from
the app's GI, for refit; given, the re-fit is on unless refit: false (D803). Default: none.
Several sets in one module share one provider: pass the same text to each (it is emitted once).
OptionalgroupBind group index of the atlas, sampler and table. Default 0.
OptionallodRoughness to mip. Default 'alpha' (D101); 'r187' is three r187's PMREM mapping everywhere.
OptionalmirrorThe atlas holds x-mirrored captures (three's CubeCamera): an alias of captureTransform: CAPTURE_MIRROR_X. Default false.
OptionalrefitRe-fit by frame irradiance (SPEC "Probe re-fit", D60, D803). Default: on when the lookup has a
frame irradiance provider (ProbeLookupModuleOptions.frameIrradianceWgsl), else off; the
function form (probeLookupFunctionWgsl) has no provider option, so there the default is
off and the caller decides (a negative frameIrr also switches it off at run time). An explicit
value wins.
OptionalroughnessLagarde 2014's roughness lerp of the box-projected direction back toward the unprojected one (Appendix F, D53, D2700). Default false.
OptionalsuffixAppended to every name this set's module defines (its bindings pr_atlas..., probeLookup,
probeRadiance, probeRadianceWithEnvironment, the N forms, probeFrameIrradiance,
probeProxyShare), so several sets live in one module (D805): suffix: 'B' gives
probeRadianceB(P, R, r). Shared helpers (probeSpecularOcclusion) keep their names. Default ''.
OptionalvolumeWith count and several atlases: the atlas of each unrolled volume, fixed at compile time
(an engine that recompiles per bake, three), so each volume samples its own texture with no
branch. Absent, or past PROBE_UNROLL_MAX_VOLUMES (the grid walk), each volume's atlas is read
from the table and picked by a branch.
With several
atlases(D4700): the binding of atlas 1 (atlas k atatlasBinding + k - 1, same group). Defaultbinding + 3, right after the table.