BakeResult
此内容尚不支持你的语言。
Defined in: lightmap/bake.ts:57
Bakes lights into an atlas a MeshLightmap reads. Direct light, then what
bounced — the term a frame here cannot compute, and the way past its ceiling
of sixteen lights.
Pre-1.0: the options will follow what an authoring panel needs.
Properties
Section titled “Properties”lumels
Section titled “lumels”lumels:
number
Defined in: lightmap/bake.ts:64
Texels the surfaces actually cover, out of the atlas.
pixels
Section titled “pixels”pixels:
Uint8Array
Defined in: lightmap/bake.ts:59
RGBA8, atlasSize * atlasSize * 4 — what a .png is written from.
probes
Section titled “probes”probes:
Float32Array<ArrayBufferLike>[]
Defined in: lightmap/bake.ts:67
Nine RGB coefficients per probe, one array per requested grid, in grid
order with x varying fastest — what a .esprobes carries.
reflections
Section titled “reflections”reflections:
CapturedPanorama[]
Defined in: lightmap/bake.ts:70
One captured sphere per BakeOptions.reflectionProbes, in the order they were given, for the caller to prefilter into an atlas column.
scaleOffset
Section titled “scaleOffset”scaleOffset: [
number,number,number,number][]
Defined in: lightmap/bake.ts:62
What each surface’s MeshLightmap.scaleOffset must be set to, in order.
size:
number
Defined in: lightmap/bake.ts:60