|
преди 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
});