I'd like to rotate an object when the page scrolls, but I cant make it work properly. What I have so far and updates the rotation of the object on page load is:
mesh.rotation.y = window.pageYOffset;
this however only updates the object on page load and not updating it further on scroll. I know that for the camera you have to update the projection matrix to be able to have an interactive camera, on objects/meshes however this seems to be on by default (mesh.updateMatrix), I still cant make it work. What am I doing wrong?