aboutsummaryrefslogtreecommitdiff
path: root/src/components/sun.jsx
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <silas@exvacuum.dev>2025-02-10 16:50:19 -0500
committerLibravatar Silas Bartha <silas@exvacuum.dev>2025-02-10 16:50:19 -0500
commit89b411863b452fdab9d2b4a0cfd0e9d79d991f72 (patch)
tree02de0ae38340386c0ac7bb6e8e4b6ab4317878bd /src/components/sun.jsx
parent55a0a3de6550f0142b79ab40645c20b465ddded8 (diff)
Reading messages from DB + clicking to place new messages
Diffstat (limited to 'src/components/sun.jsx')
-rw-r--r--src/components/sun.jsx18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/components/sun.jsx b/src/components/sun.jsx
new file mode 100644
index 0000000..455a065
--- /dev/null
+++ b/src/components/sun.jsx
@@ -0,0 +1,18 @@
+import { Matrix4 } from 'three';
+import * as everforest from '../_everforest.module.scss'
+
+export default function Sun() {
+ return (<>
+ <directionalLight
+ position={[1000, 1000, 1000]}
+ lookAt={[0, 0, 0]}
+ intensity={Math.PI / 2}
+ color={everforest.red}
+ />
+ <ambientLight intensity={Math.PI / 4} />
+ <mesh position={[1000,1000,1000]}>
+ <icosahedronGeometry args={[100,100]}/>
+ <meshStandardMaterial color={everforest.red} emissive={everforest.red} emissiveIntensity={1} fog={false}/>
+ </mesh>
+ </>);
+}