EnvMap problem with rotation

Hi everyone, I’m new here,
I have been using three.js since 2015.
But today I found myself facing a problem with custom shader materials.
I need to rotate the texture (Equirectangular) in order to rotate the projection of the enviroment map in all my object parts.
I created a custom shader material with these properties:
const equirectShader = THREE.ShaderLib[‘equirect’];
const equirectMaterial = new THREE.ShaderMaterial({
fragmentShader: equirectShader.fragmentShader,
vertexShader: equirectShader.vertexShader,
uniforms: equirectShader.uniforms,
depthWrite: false,
side: THREE.BackSide
});
how can I move the texture to change the projection of the envmap?
Thanks

More recent versions of Three.js have a material.envMapRotation property.

The GLSL logic for that functionality could be copied or into a custom shader.

The TSL | logic can be used when in the WebGPURenderer mode.