Skip to content

Instantly share code, notes, and snippets.

@Dragon3DGraff
Dragon3DGraff / makeAtlas.js
Last active Dec 5, 2021
Making atlas from several images
View makeAtlas.js
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) =>