瀏覽代碼

Add comment

customisations
alemart 10 月之前
父節點
當前提交
f74fe331f6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      demos/hello-three/demo.js

+ 1
- 1
demos/hello-three/demo.js 查看文件

15
         const loader = new THREE.GLTFLoader();
15
         const loader = new THREE.GLTFLoader();
16
         const gltf = await loader.loadAsync(filepath);
16
         const gltf = await loader.loadAsync(filepath);
17
 
17
 
18
-        // glTF defines +y as up. We expect +z to be up.
18
+        // glTF defines +y as up. We expect +z to be up (when XY is the ground plane)
19
         if(yAxisIsUp)
19
         if(yAxisIsUp)
20
             gltf.scene.rotateX(Math.PI / 2);
20
             gltf.scene.rotateX(Math.PI / 2);
21
 
21
 

Loading…
取消
儲存