Skip to content

Commit

Permalink
Update three.html
Browse files Browse the repository at this point in the history
  • Loading branch information
jcm236 authored Sep 4, 2024
1 parent b2862c0 commit 410831c
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions _includes/three.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,22 @@



BABYLON.MeshBuilder.CreateBox("box", {});

// BABYLON.MeshBuilder.CreateBox("box", {});
BABYLON.SceneLoader.ImportMesh(
undefined, // Name of meshes to load
"/assets/models/", // Path on a server for the file
"earth.gltf", // The file name that should be loaded from the above path
scene{{ include.id }}, // The scene to load this mesh/model file into
function (
meshes,
particleSystems,
skeletons,
animationList
) {
// Custom Code to run after Loading has finished
}
);



const camera{{ include.id }} = new BABYLON.ArcRotateCamera("camera", -Math.PI / 2, Math.PI / 2.5, 15, new BABYLON.Vector3(0, 0, 0));
Expand Down

0 comments on commit 410831c

Please sign in to comment.