Skip to main content

Rain

Type

Component

Default Usage

import { Scene, Rain } from 'react-three-lite'

export default function App() {
return (
<Scene bgColor="#0f172a" style={{ width: '100%', height: '300px' }}>
<Rain count={3000} speed={0.8} color={0x87ceeb} range={30} height={20} />
</Scene>
)
}

Props

PropertyTypeDefaultDescription
countnumber4000Number of raindrops
colorstring | number | Color0xb0c4deRaindrop color
speednumber1Falling speed multiplier
rangenumber20Horizontal distribution range
heightnumber15Falling height range
windXnumber0.1Wind force on X axis
windZnumber0Wind force on Z axis
opacitynumber0.8Raindrop opacity