Skip to content

Commit

Permalink
Update ground.js
Browse files Browse the repository at this point in the history
  • Loading branch information
davespser authored Dec 9, 2024
1 parent 5bca7ef commit 68c6fa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/ground.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import * as THREE from "three";
export function createFloor() {
// Cargar el mapa de desplazamiento y la textura del terreno
const textureLoader = new THREE.TextureLoader();
const displacementMap = textureLoader.load("./textures/displacement.png"); // Ruta del mapa de desplazamiento
const terrainTexture = textureLoader.load("./textures/terrain.jpg"); // Ruta de la textura del terreno
const displacementMap = textureLoader.load("./js/textures/displacement.png"); // Ruta del mapa de desplazamiento
const terrainTexture = textureLoader.load("./js/textures/terrain.jpg"); // Ruta de la textura del terreno

// Configurar la textura del terreno
terrainTexture.wrapS = THREE.RepeatWrapping;
Expand Down

0 comments on commit 68c6fa6

Please sign in to comment.