Lighting for entities
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user