blob: fe0a79bc8fdb7809ee8aa90ee96305a5d3b38601 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import * as everforest from '../_everforest.module.scss'
export default function Sun({ref}) {
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]} ref={ref}>
<icosahedronGeometry args={[50,50]}/>
<meshStandardMaterial color={everforest.red} emissive={everforest.red} emissiveIntensity={1} fog={false}/>
</mesh>
</>);
}
|