emacroh5lib 1.0.82 → 1.0.83
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -401,7 +401,7 @@
|
|
401
401
|
geometry.position.z += (-centerPoint.z)
|
402
402
|
geometry.position.x += (-centerPoint.x)
|
403
403
|
geometry.position.y += (-centerPoint.y)
|
404
|
-
this.gl.geometry = pivot
|
404
|
+
// this.gl.geometry = pivot
|
405
405
|
scene.add(pivot);
|
406
406
|
|
407
407
|
this.loading = false
|
@@ -734,7 +734,7 @@
|
|
734
734
|
|
735
735
|
// this.gl.scene.rotateY(45)
|
736
736
|
|
737
|
-
let axes = new THREE.AxisHelper(
|
737
|
+
let axes = new THREE.AxisHelper(20);
|
738
738
|
this.gl.scene.add(axes);
|
739
739
|
|
740
740
|
//点光源
|
@@ -750,8 +750,8 @@
|
|
750
750
|
/**
|
751
751
|
* 相机设置
|
752
752
|
*/
|
753
|
-
let width = window.innerWidth * 0.
|
754
|
-
let height = window.innerHeight * 0.
|
753
|
+
let width = window.innerWidth * 0.85; //窗口宽度
|
754
|
+
let height = window.innerHeight * 0.85; //窗口高度
|
755
755
|
let k = width / height; //窗口宽高比
|
756
756
|
let s = 300; //三维场景显示范围控制系数,系数越大,显示的范围越大
|
757
757
|
//创建相机对象
|