rollup-plugin-gltf

4.0.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i rollup-plugin-gltf

Weekly Downloads

5

Version

4.0.0

License

Apache-2.0

Unpacked Size

15.6 kB

Total Files

5

Last publish

Collaborators

  • donmccurdy
  • rdnyt