Raw asset bytes, cached and progress-reported the same way loader.ts's texture cache is -
but renderer-free, so a Babylon-only game (or anything else that just wants an
ArrayBuffer) gets the same load/isLoaded/release shape a 2D game's textures already
have, without pulling Pixi in. Vox.parseVox is the direct beneficiary: it takes an
ArrayBuffer a game previously had to fetch and cache by hand.
Kept out of loader.ts itself for the same reason paths.ts is its own file: loader.ts
is allowed to know about Pixi, three-d is allowed to know about Babylon, but neither
should have to import the other's renderer just to share a byte cache.
Raw asset bytes, cached and progress-reported the same way
loader.ts's texture cache is - but renderer-free, so a Babylon-only game (or anything else that just wants anArrayBuffer) gets the sameload/isLoaded/releaseshape a 2D game's textures already have, without pulling Pixi in.Vox.parseVoxis the direct beneficiary: it takes anArrayBuffera game previously had to fetch and cache by hand.Kept out of
loader.tsitself for the same reasonpaths.tsis its own file:loader.tsis allowed to know about Pixi,three-dis allowed to know about Babylon, but neither should have to import the other's renderer just to share a byte cache.Example