Spotlight.map rotation

Hello.

I implemented a technique from https://github.com/mrdoob/three.js/pull/20290

I wonder is it possible to rotate spotlight or texture? Specifically i need to rotate around Z axis (blue) to fit the texture with 3D model. As you can see now it doesn’t.


I tried to rotate: camera, spotlight, spotLight.map, spotLight.shadow.camera, but nothing does the job. Or do i need to do something other to perform the task?