vite-plugin-gltf
v4.0.0
Published
Vite plugin for optimizing glTF 3D models
Downloads
1,312
Readme
vite-plugin-gltf
Vite plugin for optimizing glTF 3D models.
Quickstart
Install:
npm install --save-dev vite-plugin-gltf
Build:
// vite.config.js
import gltf from 'vite-plugin-gltf';
import { textureResize } from '@gltf-transform/functions';
export default {
plugins: [
gltf({
transforms: [ textureResize({ size: [ 1024, 1024 ] }) ]
})
]
// ...
};
License
Apache License, Version 2.0.
This repository is maintained by the Research & Development team at The New York Times and is provided as-is for your own use. For more information about R&D at the Times visit rd.nytimes.com.