From 2cb83654294e669fe0999f073755526989499f7b Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期二, 28 十二月 2021 13:34:40 +0800
Subject: [PATCH] #
---
static/js/object/StoreConvey.js | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/static/js/object/StoreConvey.js b/static/js/object/StoreConvey.js
index dd1b3f0..a601f80 100644
--- a/static/js/object/StoreConvey.js
+++ b/static/js/object/StoreConvey.js
@@ -39,15 +39,18 @@
if (child instanceof THREE.Mesh) {
child.scale.set(1, 1, 1.6);
child.material = new THREE.MeshLambertMaterial({
- color: 0x8B8378
+ color: 0x444444
});
if (child.name === "Box034" || child.name === "Box035") {
child.material = new THREE.MeshLambertMaterial({
color: 0x000000
});
}
+ child.castShadow = true;
+ child.receiveShadow = true;
}
});
+
chainList.map(item => {
that.object.addObject(customize(obj.clone(), item));
})
@@ -57,8 +60,10 @@
if (child instanceof THREE.Mesh) {
child.scale.set(0.5, 1, 1);
child.material = new THREE.MeshLambertMaterial({
- color: 0x8B8378
+ color: 0x444444
});
+ child.castShadow = true;
+ child.receiveShadow = true;
}
});
rollerList.map(item => {
@@ -70,7 +75,7 @@
if (child instanceof THREE.Mesh) {
child.scale.set(1, 1, 1);
child.material = new THREE.MeshLambertMaterial({
- color: 0x8B8378
+ color: 0x444444
});
}
});
--
Gitblit v1.9.1