Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 697 Bytes

rain-rings.md

File metadata and controls

29 lines (23 loc) · 697 Bytes

rain

usage

只会在特定角度出现

import { Rain, RainRings, useTheme } from 'threejs-weather'
import { Canvas } from 'react-three/fiber'

const RainPage = () => {
  const { bind } = useTheme({ type: 'rain', mode: 'day' })
  return (
    <Canvas
      {...bind()}
    >
      <Rain />
      <RainRings />
    </Canvas>
  )
}

可配合rain-ring使用

props

name description type default
count num of rainring(雨斑的数目) number 10