Builds a 256-entry packed-RGBA LUT from the supplied
MaterialRegistry. Air (id 0) is 0 (transparent black);
registered materials get their color-derived RGBA; unregistered
non-zero ids fall back to magenta so they stand out visually.
Allocates a fresh Uint32Array(256). Cheap — 256 ops per call,
amortized over the 4 K – 16 K pixels of a chunk repaint. Callers
that want to skip the rebuild can cache the result for as long
as the registry is stable.
Builds a 256-entry packed-RGBA LUT from the supplied MaterialRegistry. Air (id 0) is
0(transparent black); registered materials get theircolor-derived RGBA; unregistered non-zero ids fall back to magenta so they stand out visually.Allocates a fresh
Uint32Array(256). Cheap — 256 ops per call, amortized over the 4 K – 16 K pixels of a chunk repaint. Callers that want to skip the rebuild can cache the result for as long as the registry is stable.