Pretty self-explanatory, ow do I change the position of the camera on scroll? (i.e. how do I write this raw three.js code:
const moveCamera = () => {
const top = document.body.getBoundingClientRect().top;
camera.position.set(top * -0.0002, top * -0.002, top * -0.01);
};
document.body.onscroll = moveCamera;
moveCamera();
in react-three?