From 983986bbfb492e9cc7837912517254e087e941c9 Mon Sep 17 00:00:00 2001
From: Esguerra Montana <32esla1mpg@hft-stuttgart.de>
Date: Sun, 16 Jun 2024 16:48:01 +0000
Subject: [PATCH] Update index.html

---
 public/index.html | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/public/index.html b/public/index.html
index 1e662e3..f096dec 100644
--- a/public/index.html
+++ b/public/index.html
@@ -84,8 +84,21 @@ async function activateXR() {
   roofGeometry.setIndex(new THREE.BufferAttribute(roofIndices, 1));
 
   // Create materials for walls and roof
-  var wallMaterial = new THREE.MeshBasicMaterial({ color: 0x8B4513, side: THREE.DoubleSide });
-  var roofMaterial = new THREE.MeshBasicMaterial({ color: 0xFF0000, side: THREE.DoubleSide });
+  var wallMaterial = new THREE.MeshPhysicalMaterial({
+    color: 0x8B4513,
+    metalness: 0.7, // Make it metallic
+    roughness: 0.4, // Adjust for shininess
+    clearcoat: 0.3, // Add clear coat for a polished effect
+    clearcoatRoughness: 0.1
+  });
+
+  var roofMaterial = new THREE.MeshPhysicalMaterial({
+    color: 0xFF0000,
+    metalness: 0.9, // Make it more metallic
+    roughness: 0.2, // Adjust for more shininess
+    clearcoat: 0.3,
+    clearcoatRoughness: 0.1
+  });
 
   // Create the wall and roof meshes
   var wallMesh = new THREE.Mesh(wallGeometry, wallMaterial);
-- 
GitLab