Seeded, time-driven weather for a react-three-fiber scene. Children read it with useWeather.
<Weather world={world} timeScale={60} field={{ size: 512 }}> <Precipitation /> <Lightning onStrike={(s) => console.log('strike', s)} /> <Wildfire size={1024} ignitions={[[0, 0, 10, 4]]} /></Weather> Copy
<Weather world={world} timeScale={60} field={{ size: 512 }}> <Precipitation /> <Lightning onStrike={(s) => console.log('strike', s)} /> <Wildfire size={1024} ignitions={[[0, 0, 10, 4]]} /></Weather>
Seeded, time-driven weather for a react-three-fiber scene. Children read it with useWeather.