import { Sun, useTheme } from 'threejs-weather'
import { Canvas } from 'react-three/fiber'
const RainPage = () => {
const { bind } = useTheme({ type: 'sun', mode: 'day' })
return (
<Canvas
{...bind()}
>
<Sun />
</Canvas>
)
}
name | description | type | default |
---|---|---|---|
percentX | startpoint offset(太阳初始位置百分比)) | number(0-1) | 1 |
count | sum of halo(光晕数目)|number | 6 |