zhouenguang 3 роки тому
батько
коміт
168ffbef50
1 змінених файлів з 8 додано та 6 видалено
  1. 8 6
      index.html

+ 8 - 6
index.html

@@ -74,7 +74,9 @@
         z-index: 10000;
         top: 0;
         left: 0;
-      "></div>
+      ">
+        <button id = "enterBtn">点击进入</button>
+      </div>
       <canvas id="renderCanvas"></canvas>
 
       <div id="videoTextureBox">
@@ -94,7 +96,6 @@
           id="houseTexture"
           src=""
           crossorigin="anonymous"
-          playsinline
           preload="auto"
           playsinline="true" 
           muted
@@ -104,7 +105,6 @@
           id="houseTextureReverse"
           src=""
           crossorigin="anonymous"
-          playsinline
           preload="auto"
           playsinline="true" 
           muted
@@ -189,9 +189,11 @@
           scene = window.app.scene;
         };
 
-        initFunction().then(() => {
-          sceneToRender = scene;
-        });
+        document.getElementById("enterBtn").onclick = async() => {
+          initFunction().then(() => {
+            sceneToRender = scene;
+          });
+        }
 
         window.scene = scene;
         window.engine = engine;