No description, website, or topics provided.
JavaScript GLSL HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
.gitignore
.npmignore
LICENSE.md
README.md
index.js
load.js
package.json
screenshot.jpg

README.md

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.