From 5769c9f7664be6580578ad0a8e1ab9c3951b6f08 Mon Sep 17 00:00:00 2001 From: David espinosa <104380606+davespser@users.noreply.github.com> Date: Fri, 6 Dec 2024 19:02:29 +0100 Subject: [PATCH] Update three-scene.js --- js/three-scene.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/three-scene.js b/js/three-scene.js index 508dd170..95ac16e1 100644 --- a/js/three-scene.js +++ b/js/three-scene.js @@ -49,7 +49,7 @@ export function loadThreeScene({ x = 0, y = 0, z = 0, color = 0xff4500, stats = // Crear cubo con color del personaje const geometry = new THREE.BoxGeometry(); - const material = new THREE.MeshPhongMaterial({ color, shininess: 150, reflectivity: 1, specular: 0xffffff}); + const material = new THREE.MeshStandardMaterial({ color, metalness: 0.9, roughness: 0.1, specular: 0xffffff}); cube = new THREE.Mesh(geometry, material); cube.position.set(x, y + 0.5, z); cube.castShadow = true;