I need to rotate the environment. And since three.js does not support cube env rotation, I'm going the simplest way and modifying scene.rotation.y
, as suggested by three.js contributors everywhere.
It all works fine until the camera is panned. Try it for yourself here https://stackblitz.com/edit/threejs-env-rotate and observe the camera wobble when the scene is rotated using the slider.
How do I remedy the wobble? I seem to be unable to find the algorithm that would solve this. I tried rotating the controls.target
, but maybe my 3D math is off.