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 a4a92a2 commit df4aec9
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 @@ -33,7 +33,7 @@ export function loadThreeScene({ x = 0, y = 0, z = 0, color = 0xff4500, stats =
scene.add(directionalLight);

// Crear suelo con textura
const floorTexture = new THREE.TextureLoader().load("https://threejs.org/examples/textures/grasslight-big.jpg");
const floorTexture = new THREE.TextureLoader().load("./grasslight-big.png");
floorTexture.wrapS = THREE.RepeatWrapping;
floorTexture.wrapT = THREE.RepeatWrapping;
floorTexture.repeat.set(10, 10);
Expand Down

0 comments on commit df4aec9

Please sign in to comment.