lucas-jones / gltf-transform-xatlas

Proof of concept - Using XAtlas with GLTF-Transform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

glTF-Transform-XAtlas

Not on NPM atm, install via GitHub

npm install https://github.com/lucas-jones/gltf-transform-xatlas.git
yarn add https://github.com/lucas-jones/gltf-transform-xatlas.git
pnpm install https://github.com/lucas-jones/gltf-transform-xatlas.git

UV Unwrapping function for glTF-Transform

import { unwrap } from 'gltf-transform-xatlas';

await unwrap(document, [ mesh1 ]);

await unwrap(document, [ primitive1, primitive2 ]);

// Generates a TEXCOORD_1 attribute where meshs share a single texture spacen

References:

About

Proof of concept - Using XAtlas with GLTF-Transform


Languages

Language:C++ 96.5%Language:C 2.2%Language:TypeScript 0.9%Language:Shell 0.3%Language:JavaScript 0.0%