react-particles-webgl
react-particles-webgl copied to clipboard
reset
trafficstars
it will be reset when form inputed , used antd form
There are two scenarios where the canvas will appear to "reset"
- You have
{ cameraControls: { resetCameraFlag: true } }which is the intended behavior - You've changed some setting that involves regenerating the particles/lines from scratch, in which they'd receive new initial [x, y, z] positions and velocities, such as enabling or disabling particles
Another possibility with your specific implementation is your form changes are causing a full rerender of the particle canvas