How to rotate HDR in three.js?

Hi, I want to rotate hdr in three.js. The online website do it, PlayCanvas glTF Viewer.

The HDR background does not rotate, it’s still, it’s the camera that makes an orbit (orbitControls) over the imported model and consequently the hdr background gives the impression that it is rotating.

Take a look at orbitControls if you want the same effect

Thanks for your reply, I change the PMREMGenerator, I modified the shader to control the texture rotation.It’s run perfect like the website PlayCanvas glTF Viewer

1 Like

Are you able to say how you did this? It would be really useful.

I assume there’s not a way that’s been added recently to do something like scene.background.rotate(amount)?

3 Likes