added glb support
This commit is contained in:
parent
fcf6fa973b
commit
0198bbba93
1 changed files with 1 additions and 1 deletions
|
|
@ -210,7 +210,7 @@
|
|||
|
||||
let fileLoaders = loadFile({
|
||||
".gltf": (file) => file.arrayBuffer().then( (data) => loader.parse( data, '', loadGLTF, console.error ) ),
|
||||
".glb": (file) => loader.parse( file.arrayBuffer(), '', loadGLTF, console.error )
|
||||
".glb": (file) => file.arrayBuffer().then( (data) => loader.parse( data, '', loadGLTF, console.error ) )
|
||||
})
|
||||
document.querySelector("#overlay > input").addEventListener("click", fileLoaders )
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue