We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 103fa59 commit 2cf69afCopy full SHA for 2cf69af
main.js
@@ -62,8 +62,7 @@ function addStar() {
62
63
Array(200).fill().forEach(addStar); //create array of 200, call to create 200 stars in the scene
64
65
-
66
-const spaceTexture = new THREE.TextureLoader().load('../assets/space.jpg'); //load the space texture
+const spaceTexture = new THREE.TextureLoader().load('space.jpg'); //load the space texture with a relative path
67
scene.background = spaceTexture; //set the scene's background to the space texture
68
69
function moveCamera() {
assets/space.jpg space.jpg
0 commit comments