Lighting for entities

This commit is contained in:
2026-09-30 16:56:55 -03:00
parent 93382d3c97
commit cbc9edfd60
11 changed files with 163 additions and 18 deletions
+3
View File
@@ -83,6 +83,9 @@ export type FromChunkWorker =
planes: [Float32Array, Float32Array, Float32Array];
};
camera: number[];
// the chunk's light, one byte per block indexed like its blocks: block light << 4 | sky light, like sodium's
// packed light data. entities are lit from it
light: Uint8Array<ArrayBuffer>;
}
| {
type: "sorted";