Why don’t you rotate both the object and the camera simultaneously? It’ll give the impression that it’s the environment that’s rotating.
Otherwise, you could use this online tool that lets you transform an equirectangular image to a cubemap with the exact rotation you want by dragging the image.
@marquizzo So you mean that there is no way to simply move a texture inside ThreeJS?
How weird this is!
I need to do tiny adjustments constantly, so I don’t want to re-export my envMap each time to see the result.
Well there is for most textures, via the offset/rotation properties you mention. But really that transforms UVs, and how that should affect an environment map is a harder question…
Yes, Three.js does have a way to rotate texture.maps.
No, Three.js does not have a native way to rotate texture.envMaps.
They are two similar things that behave differently. Look at the texture constants page you’ll see UVMapping is for standard textures that get applied to the faces of your mesh (you can rotate and offset these). I believe envMaps use EquirectangularReflectionMapping, which doesn’t have built-in rotation attributes that you can modify out of the box.
If you really must get envMap rotations, you’ll have to create your own custom shaders with the ability to rotate the way they’re mapped. I was able to follow this article to create my own rotating CubeMap, maybe you could use it to make your own EnvMap. There’s a section 2/3rds down titled “GLSL Language” with the code that will point you in the right direction.