Skip to content

Commit f4c85a6

Browse files
committed
change dir to .. instead of . for background
1 parent 50cf319 commit f4c85a6

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

counter.js

-9
This file was deleted.

main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function addStar() {
6363
Array(200).fill().forEach(addStar); //create array of 200, call to create 200 stars in the scene
6464

6565

66-
const spaceTexture = new THREE.TextureLoader().load('./assets/space.jpg'); //load the space texture
66+
const spaceTexture = new THREE.TextureLoader().load('../assets/space.jpg'); //load the space texture
6767
scene.background = spaceTexture; //set the scene's background to the space texture
6868

6969
function moveCamera() {

public/vite.svg

-1
This file was deleted.

0 commit comments

Comments
 (0)