Recently I delved into the world of three.js and came across an interesting project that I am trying to tweak.
I am curious to find out if there is a way to make the globe object rotate around its y-axis with minimal changes to the existing code, or if a complete rewrite is necessary.
var canvas = document.querySelector('canvas');
var width = canvas.offsetWidth,
height = canvas.offsetHeight;
// Remaining code remains the same as before
For full code implementation, you can check out the Codepen link - https://codepen.io/quickwaste/pen/PaGPdw
Thank you!
(As a bonus challenge, I aim to have the camera respond to mouse movements)