Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 711 Bytes

sun.md

File metadata and controls

26 lines (21 loc) · 711 Bytes

sun

usage

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>
  )
}

props

name description type default
percentX startpoint offset(太阳初始位置百分比)) number(0-1) 1
count sum of halo(光晕数目)|number 6