big sun
This commit is contained in:
parent
5e6cf451d8
commit
1356ba5e31
@ -55,7 +55,7 @@ scene.add(stars);
|
|||||||
// --- Sun ---
|
// --- Sun ---
|
||||||
const sunTexture = textureLoader.load('assets/textures/sun.jpg');
|
const sunTexture = textureLoader.load('assets/textures/sun.jpg');
|
||||||
const sunMaterial = new THREE.MeshBasicMaterial({ map: sunTexture });
|
const sunMaterial = new THREE.MeshBasicMaterial({ map: sunTexture });
|
||||||
const sun = new THREE.Mesh(new THREE.SphereGeometry(5, 32, 32), sunMaterial);
|
const sun = new THREE.Mesh(new THREE.SphereGeometry(7, 32, 32), sunMaterial);
|
||||||
scene.add(sun);
|
scene.add(sun);
|
||||||
|
|
||||||
// --- Planets & Orbits ---
|
// --- Planets & Orbits ---
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user