BakeResult
此内容尚不支持你的语言。
Defined in: sdk/src/lightmap/bake.ts:73
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: sdk/src/lightmap/bake.ts:81
Texels the surfaces actually cover, out of the atlas.
pixels
Section titled “pixels”pixels:
Uint8Array
Defined in: sdk/src/lightmap/bake.ts:76
atlasSize * atlasSize * 4 bytes a .png is written from; see
encodeLightmap.
probes
Section titled “probes”probes:
Float32Array<ArrayBufferLike>[]
Defined in: sdk/src/lightmap/bake.ts:86
Nine RGB coefficients per probe, one array per requested grid, in grid
order with x varying fastest — what a .esprobes carries.
probeSkyVisibility
Section titled “probeSkyVisibility”probeSkyVisibility:
Float32Array<ArrayBufferLike>[]
Defined in: sdk/src/lightmap/bake.ts:89
With BakeOptions.skyOcclusion: nine coefficients per probe, one array per grid, of how much of the sky each sees. Empty without it.
reflections
Section titled “reflections”reflections:
CapturedPanorama[]
Defined in: sdk/src/lightmap/bake.ts:92
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: sdk/src/lightmap/bake.ts:79
What each surface’s MeshLightmap.scaleOffset must be set to, in order.
shared
Section titled “shared”shared:
Float32Array
Defined in: sdk/src/lightmap/bake.ts:83
Per surface: the share of its texels its own lightmap UVs laid twice.
size:
number
Defined in: sdk/src/lightmap/bake.ts:77