You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
526 B

import React from 'react'
import { Sky } from '@react-three/drei'
// TODO add props to change lighting according to real world time
const Lighting: React.FC = () => {
return (
<>
<ambientLight color={0xd3840e} />
<pointLight position={[0, 20, -30]} color={0xd3840e} />
<Sky
distance={500}
azimuth={0.25}
mieDirectionalG={0.83}
mieCoefficient={0.008}
inclination={0.5}
turbidity={8}
rayleigh={2.9}
/>
</>
)
}
export default Lighting