From 0d0d52d7b35e41335cf2a8dcce8e1e3cef96811e Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期二, 04 一月 2022 13:20:18 +0800
Subject: [PATCH] #
---
static/js/object/StoreConvey.js | 21 +++++++++++++--------
1 files changed, 13 insertions(+), 8 deletions(-)
diff --git a/static/js/object/StoreConvey.js b/static/js/object/StoreConvey.js
index 02418e9..5228fab 100644
--- a/static/js/object/StoreConvey.js
+++ b/static/js/object/StoreConvey.js
@@ -34,42 +34,47 @@
init();
this.load = function () {
- new THREE.ObjectLoader().load( "../static/model/json/閾炬潯杈撻�佹満.json", function (obj) {
+ new THREE.ObjectLoader().load( "../static/model/json/chainConvey.json", function (obj) {
obj.traverse (function (child) {
if (child instanceof THREE.Mesh) {
child.scale.set(1, 1, 1.6);
- child.material = new THREE.MeshLambertMaterial({
+ child.material = new THREE.MeshPhysicalMaterial({
color: 0x444444
});
if (child.name === "Box034" || child.name === "Box035") {
- child.material = new THREE.MeshLambertMaterial({
- color: 0x000000
+ child.material = new THREE.MeshPhysicalMaterial({
+ color: 0x1C1C1C
});
}
+ child.castShadow = true;
+ // child.receiveShadow = true;
}
});
+
chainList.map(item => {
that.object.addObject(customize(obj.clone(), item));
})
});
- new THREE.ObjectLoader().load( "../static/model/json/杈婄瓛杈撻�佹満.json", function (obj) {
+ new THREE.ObjectLoader().load( "../static/model/json/rollerConvey.json", function (obj) {
obj.traverse (function (child) {
if (child instanceof THREE.Mesh) {
child.scale.set(0.5, 1, 1);
- child.material = new THREE.MeshLambertMaterial({
+ child.material = new THREE.MeshPhysicalMaterial({
color: 0x444444
});
+ child.castShadow = true;
+ // child.receiveShadow = true;
}
});
rollerList.map(item => {
that.object.addObject(customize(obj.clone(), item));
})
});
- new THREE.ObjectLoader().load( "../static/model/json/椤跺崌绉绘牻.json", function (obj) {
+ new THREE.ObjectLoader().load( "../static/model/json/transportConvey.json", function (obj) {
obj.traverse (function (child) {
if (child instanceof THREE.Mesh) {
child.scale.set(1, 1, 1);
- child.material = new THREE.MeshLambertMaterial({
+ child.material = new THREE.MeshPhysicalMaterial({
color: 0x444444
});
}
--
Gitblit v1.9.1