4.0.0 • Published 2 years ago

rollup-plugin-gltf v4.0.0

Weekly downloads
4,557
License
Apache-2.0
Repository
github
Last release
2 years ago

rollup-plugin-gltf

Rollup plugin for optimizing glTF 3D models.

Quickstart

Install:

npm install --save-dev rollup-plugin-gltf

Build:

// rollup.config.js
import gltf from 'rollup-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.

3.2.0

2 years ago

4.0.0

2 years ago

3.2.1-alpha.0

2 years ago

4.0.0-alpha.1

2 years ago

4.0.0-alpha.2

2 years ago

3.1.0

2 years ago

3.0.1

2 years ago

2.0.0

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago