From 402c4b754c7b82a2bb06db96115a332619ffeb17 Mon Sep 17 00:00:00 2001 From: Xiaoyu Hou Date: Sat, 24 Feb 2024 13:10:38 -0800 Subject: [PATCH] change index completely --- index.html | 127 ++++++++++++++++++++++++++++++++++++++++++++++++++++- index.js | 5 +-- 2 files changed, 127 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 7506fa5..ad5a450 100644 --- a/index.html +++ b/index.html @@ -1,10 +1,9 @@ - + @@ -12,4 +11,128 @@ + --> + + + + + + + Babylon.js sample code + + + + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/index.js b/index.js index 2467cd1..c801d7d 100644 --- a/index.js +++ b/index.js @@ -18,7 +18,6 @@ import { Button, Control } from "@babylonjs/gui"; -import * as BABYLON from "@babylonjs/core"; import { WebXRDefaultExperience } from '@babylonjs/core/XR/webXRDefaultExperience.js' @@ -66,7 +65,7 @@ window.addEventListener("resize", () => { // Create the PhotoDome var dome = new PhotoDome( "sphere", - athen3d, + "https://i.imgur.com/nI1VPdJ.jpg", { resolution: 64, size: 1000, @@ -75,7 +74,7 @@ var dome = new PhotoDome( }, scene ); -dome.imageMode = BABYLON.PhotoDome.MODE_TOPBOTTOM; +dome.imageMode = PhotoDome.MODE_TOPBOTTOM; //dome.imageMode = PhotoDome.MODE_TOPBOTTOM = 1;