endset_three_editor 0.3.5 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/three-editor.es.js
CHANGED
|
@@ -1496,7 +1496,7 @@ function vi() {
|
|
|
1496
1496
|
}), I.scene.add(r.getHelper()), I.transformControls = r;
|
|
1497
1497
|
}
|
|
1498
1498
|
function Mi() {
|
|
1499
|
-
const r = new P.AmbientLight(16777215,
|
|
1499
|
+
const r = new P.AmbientLight(16777215, 1);
|
|
1500
1500
|
I.scene.add(r);
|
|
1501
1501
|
}
|
|
1502
1502
|
function Xn() {
|
|
@@ -4176,14 +4176,14 @@ function qo(r) {
|
|
|
4176
4176
|
const {
|
|
4177
4177
|
width: e = 10,
|
|
4178
4178
|
height: t = 10,
|
|
4179
|
-
color: s =
|
|
4179
|
+
color: s = "rgb(159, 228, 255)",
|
|
4180
4180
|
roughness: n = 0.3,
|
|
4181
4181
|
metalness: i = 0.1,
|
|
4182
4182
|
normalScale: o = 0.5,
|
|
4183
4183
|
repeatX: a = 4,
|
|
4184
4184
|
repeatY: l = 4,
|
|
4185
|
-
speedX: c =
|
|
4186
|
-
speedY: A =
|
|
4185
|
+
speedX: c = 5e-4,
|
|
4186
|
+
speedY: A = 5e-4
|
|
4187
4187
|
} = r || {}, u = new P.PlaneGeometry(e, t), d = new P.TextureLoader().load(Wo, (m) => {
|
|
4188
4188
|
m.wrapS = m.wrapT = P.RepeatWrapping, m.repeat.set(a, l), m.generateMipmaps = !1, m.minFilter = P.LinearFilter, m.magFilter = P.LinearFilter;
|
|
4189
4189
|
}), p = new P.MeshStandardMaterial({
|
|
@@ -4195,7 +4195,7 @@ function qo(r) {
|
|
|
4195
4195
|
side: P.DoubleSide,
|
|
4196
4196
|
// 双面渲染,避免从侧面或底部看到黑色
|
|
4197
4197
|
transparent: !0,
|
|
4198
|
-
opacity: 0.
|
|
4198
|
+
opacity: 0.6
|
|
4199
4199
|
}), h = new P.Mesh(u, p);
|
|
4200
4200
|
h.rotation.x = -Math.PI / 2, h.position.y = 0, h.name = "水面(标准材质)", h.userData.isWater = !0, h.userData.isMovable = !0, h.userData.waterSpeed = { x: c, y: A }, Ge(h);
|
|
4201
4201
|
}
|