BakedLightingData
Defined in: sdk/src/lightmap/components.ts:18
The fields of the BakedLighting component.
Properties
Section titled “Properties”atlasSize
Section titled “atlasSize”atlasSize:
number
Defined in: sdk/src/lightmap/components.ts:20
Side of the square atlas, in texels.
bakedFrom
Section titled “bakedFrom”bakedFrom:
string
Defined in: sdk/src/lightmap/components.ts:38
What the last bake was OF. Empty until one has run; different from what
the scene fingerprints to now means the light is out of date. The baker
writes it — not readonly, which means “the engine computes this and the
editor must not project it into the World”, and this is neither.
bounces
Section titled “bounces”bounces:
number
Defined in: sdk/src/lightmap/components.ts:25
How many times light is allowed to reflect. Zero is direct light only.
probeSamples
Section titled “probeSamples”probeSamples:
number
Defined in: sdk/src/lightmap/components.ts:30
Directions each probe gathers — over the whole sphere, so this buys less per ray than a lumel’s hemisphere does.
samples
Section titled “samples”samples:
number
Defined in: sdk/src/lightmap/components.ts:27
Rays each lumel gathers per bounce.
skyOcclusion
Section titled “skyOcclusion”skyOcclusion:
boolean
Defined in: sdk/src/lightmap/components.ts:33
Bake the probes without the sky and with how much of it each sees, so the sky the frame has (a live Sky Atmosphere, a weather) lights them through it: a room stays dark under any sky.
texelsPerUnit
Section titled “texelsPerUnit”texelsPerUnit:
number
Defined in: sdk/src/lightmap/components.ts:23
How finely a surface is lit, in texels per world unit. A world unit here is a design pixel, so a room is hundreds of them across.