Skip to content

lightmapImage

lightmapImage(pixels, size): Uint8Array

Defined in: lightmap/bake.ts:242

The atlas as an image file holds it: texel row y (second UV v = y / size) in image row size - 1 - y. The engine uploads a picture bottom-up, so a UV of 0 reads the image’s LAST row; written top-down, every lookup lands on its mirror.

Uint8Array

number

Uint8Array