Skip to main content

Snow

Type

Component

Default Usage

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

export default function App() {
return (
<Scene bgColor="#1e293b" style={{ width: '100%', height: '300px' }}>
<Snow count={2000} speed={0.5} color={0xffffff} range={25} height={18} />
</Scene>
)
}

Props

PropertyTypeDefaultDescription
countnumber3000Number of snowflakes
colorstring | number | Color0xffffffSnowflake color
speednumber0.5Falling speed multiplier
rangenumber20Horizontal distribution range
heightnumber15Falling height range
windXnumber0.2Wind force on X axis
windZnumber0.1Wind force on Z axis
opacitynumber0.9Snowflake opacity
sizenumber1Snowflake size multiplier