|
пре 9 година | |
---|---|---|
.. | ||
README.md | пре 9 година | |
babylon.glTFFileLoader.js | пре 9 година | |
babylon.glTFFileLoader.ts | пре 9 година | |
babylon.glTFFileLoaderInterfaces.js | пре 10 година | |
babylon.glTFFileLoaderInterfaces.ts | пре 9 година |
The glTF file loader is a SceneLoader plugin. Just reference the loader in your HTML file:
<script src="babylon.2.1.js"></script>
<script src="babylon.glTFFileLoader.js"></script>
And then, call the scene loader:
BABYLON.SceneLoader.Load("./", "duck.gltf", engine, function (scene) {
// do somethings with the scene
});