Skip to content

Commit

Permalink
Update three-scene.js
Browse files Browse the repository at this point in the history
  • Loading branch information
davespser authored Dec 6, 2024
1 parent df43118 commit 53796fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/three-scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,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.MeshStandardMaterial({ color });
const material = new THREE.MeshPhongMaterial({ color, shininess: 150, reflectivity: 1, specular: 0xffffff});
cube = new THREE.Mesh(geometry, material);
cube.position.set(x, y + 0.5, z);
cube.castShadow = true;
Expand Down

0 comments on commit 53796fd

Please sign in to comment.