From 059270c12f452fcc3344b826f35295fd7c20906e Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 21 三月 2023 08:31:37 +0800
Subject: [PATCH] #

---
 static/js/object/StoreConvey.js |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/static/js/object/StoreConvey.js b/static/js/object/StoreConvey.js
index 8c05ac1..e844b24 100644
--- a/static/js/object/StoreConvey.js
+++ b/static/js/object/StoreConvey.js
@@ -38,16 +38,16 @@
             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;
+                    // child.receiveShadow = true;
                 }
             });
 
@@ -59,11 +59,11 @@
             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;
+                    // child.receiveShadow = true;
                 }
             });
             rollerList.map(item => {
@@ -74,7 +74,7 @@
             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
                     });
                 }
@@ -91,6 +91,7 @@
         let positionZ = info.position.z || 0;
         let rotateY = info.rotateY || 0;
 
+        clone.name = info.no + "-sta";
         clone.position.x = 0 + positionX;
         clone.position.y = 0 + positionY;
         clone.position.z = 0 + positionZ;

--
Gitblit v1.9.1