|
hace 9 años | |
---|---|---|
.. | ||
README.md | hace 9 años | |
babylon.glTFFileLoader.js | hace 9 años | |
babylon.glTFFileLoader.ts | hace 9 años | |
babylon.glTFFileLoaderInterfaces.js | hace 10 años | |
babylon.glTFFileLoaderInterfaces.ts | hace 9 años |
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
});