-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Avaer Kazmer
committed
Nov 4, 2019
1 parent
a4fa997
commit aa18d15
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Exokit Model Loader | ||
|
||
``` | ||
import ModelLoader from 'https://model-loader.exokit.org/model-loader.js'; | ||
// ... | ||
const model = await ModelLoader.loadModelUrl('model.zip'); // contains model.glb | ||
const scene = new THREE.Scene(); | ||
scene.add(model); | ||
``` |