Skip to content

Commit

Permalink
Update menu.js
Browse files Browse the repository at this point in the history
  • Loading branch information
davespser authored Dec 6, 2024
1 parent 4dc9b9d commit 7184050
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ menuColors.forEach((color, index) => {

// Crear un plano de fondo
const planeGeometry = new THREE.PlaneGeometry(3, 10);
planeGeometry.rotation.z = 15;

const planeMaterial = new THREE.MeshBasicMaterial({ color: 0x222222 });
const background = new THREE.Mesh(planeGeometry, planeMaterial);
background.position.z = -0.2; // Colocar detrás del menú
background.position.z = -0.2;
background.rotation.y = 15;// Colocar detrás del menú
scene.add(background);

// Raycaster para detección de interacciones
Expand Down

0 comments on commit 7184050

Please sign in to comment.