Skip to content

Instantly share code, notes, and snippets.

@Dragon3DGraff
Dragon3DGraff / makeAtlas.js
Last active August 30, 2023 11:44
Making atlas from several images
import {
Texture,
ImageLoader,
RGBFormat,
CanvasTexture,
} from "../build/three.module.js";
export const makeAtlas = (images, size, width, height) => {
return new Promise((resolve) => {
loadAllImages(images).then((data) =>