Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Latest commit

 

History

History
40 lines (27 loc) · 972 Bytes

README.md

File metadata and controls

40 lines (27 loc) · 972 Bytes

pex-gltf

experimental

glTF loader for the PEX library

Usage

npm install pex-gltf --save
var loadGLTF = require('pex-gltf');

loadGLTF('scene.gltf', function(err, data) {
    if (!err) {
        //data.meshes
        //data.scenes
        //...
    }
})

Running the example code

Download the Khronos Group glTF repository containing example models (warning: it's 500MB) either by clonning the glTF repository:

cd example
git clone https://github.com/KhronosGroup/glTF

or by downloading the ZIP copy and unpacking it into pex-gltf/example/glTF

License

MIT, see LICENSE.md for details.