From 5040da28e3561168ecd5c355091d707cf4115dee Mon Sep 17 00:00:00 2001 From: Natasha Moongrave Date: Sun, 22 Mar 2026 22:50:26 +0100 Subject: Moved the background JavaScript code from . to src/Background --- sun.js | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 sun.js (limited to 'sun.js') diff --git a/sun.js b/sun.js deleted file mode 100644 index 865cc09..0000000 --- a/sun.js +++ /dev/null @@ -1,29 +0,0 @@ -// sun.js -import * as THREE from 'https://unpkg.com/three@0.160.0/build/three.module.js'; - -export function createSun() { - const sunRadius = 15; - const sunSegments = 64; - - // Main sun mesh - const sunGeometry = new THREE.CircleGeometry(sunRadius, sunSegments); - const sunMaterial = new THREE.MeshBasicMaterial({ - color: 0xf49922, // neon pink - transparent: false, - opacity: 1 - }); - const sun = new THREE.Mesh(sunGeometry, sunMaterial); - sun.position.set(0, 5, -51); - - // Optional glow halo - const glowGeometry = new THREE.CircleGeometry(sunRadius * 1.4, sunSegments); - const glowMaterial = new THREE.MeshBasicMaterial({ - color: 0xf49922, - transparent: true, - opacity: 0.1 - }); - const glow = new THREE.Mesh(glowGeometry, glowMaterial); - glow.position.copy(sun.position); - - return { sun, glow }; -} -- cgit v1.2.3