blob: 455a06535f72498aad2c3a4ec66f6850591be8b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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>
</>);
}
|