Skip to content

Commit 2cf69af

Browse files
committed
background
1 parent 103fa59 commit 2cf69af

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

main.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ function addStar() {
6262

6363
Array(200).fill().forEach(addStar); //create array of 200, call to create 200 stars in the scene
6464

65-
66-
const spaceTexture = new THREE.TextureLoader().load('../assets/space.jpg'); //load the space texture
65+
const spaceTexture = new THREE.TextureLoader().load('space.jpg'); //load the space texture with a relative path
6766
scene.background = spaceTexture; //set the scene's background to the space texture
6867

6968
function moveCamera() {

assets/space.jpg space.jpg

File renamed without changes.

0 commit comments

Comments
 (0)