From a9beeab502a89fa32d5bfd83c7b7bf24c5d29694 Mon Sep 17 00:00:00 2001
From: syuilo <Syuilotan@yahoo.co.jp>
Date: Mon, 19 Aug 2019 01:43:45 +0900
Subject: [PATCH] [Room] Better rendering

---
 src/client/app/common/scripts/room/room.ts | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/src/client/app/common/scripts/room/room.ts b/src/client/app/common/scripts/room/room.ts
index b4700f2a15..38bd692671 100644
--- a/src/client/app/common/scripts/room/room.ts
+++ b/src/client/app/common/scripts/room/room.ts
@@ -387,17 +387,13 @@ export class Room {
 					if (!(child instanceof THREE.Mesh)) return;
 					child.castShadow = this.enableShadow;
 					child.receiveShadow = this.enableShadow;
-					child.material = new THREE.MeshLambertMaterial({
-						color: (child.material as THREE.MeshStandardMaterial).color,
-						map: (child.material as THREE.MeshStandardMaterial).map,
-						name: (child.material as THREE.MeshStandardMaterial).name,
-					});
+					(child.material as THREE.MeshStandardMaterial).metalness = 0;
 
 					// 異方性フィルタリング
-					if ((child.material as THREE.MeshLambertMaterial).map && this.graphicsQuality !== 'cheep') {
-						(child.material as THREE.MeshLambertMaterial).map.minFilter = THREE.LinearMipMapLinearFilter;
-						(child.material as THREE.MeshLambertMaterial).map.magFilter = THREE.LinearMipMapLinearFilter;
-						(child.material as THREE.MeshLambertMaterial).map.anisotropy = 8;
+					if ((child.material as THREE.MeshStandardMaterial).map && this.graphicsQuality !== 'cheep') {
+						(child.material as THREE.MeshStandardMaterial).map.minFilter = THREE.LinearMipMapLinearFilter;
+						(child.material as THREE.MeshStandardMaterial).map.magFilter = THREE.LinearMipMapLinearFilter;
+						(child.material as THREE.MeshStandardMaterial).map.anisotropy = 8;
 					}
 				});