diff options
Diffstat (limited to 'src/components/sun.jsx')
-rw-r--r-- | src/components/sun.jsx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/components/sun.jsx b/src/components/sun.jsx index 455a065..fe0a79b 100644 --- a/src/components/sun.jsx +++ b/src/components/sun.jsx @@ -1,7 +1,6 @@ -import { Matrix4 } from 'three'; import * as everforest from '../_everforest.module.scss' -export default function Sun() { +export default function Sun({ref}) { return (<> <directionalLight position={[1000, 1000, 1000]} @@ -10,8 +9,8 @@ export default function Sun() { color={everforest.red} /> <ambientLight intensity={Math.PI / 4} /> - <mesh position={[1000,1000,1000]}> - <icosahedronGeometry args={[100,100]}/> + <mesh position={[1000,1000,1000]} ref={ref}> + <icosahedronGeometry args={[50,50]}/> <meshStandardMaterial color={everforest.red} emissive={everforest.red} emissiveIntensity={1} fog={false}/> </mesh> </>); |