I need to distort a central cylindrical projection image texture (covering any vertical angle range) to an equirectangular projection in order to map it properly onto a sphere (all directly with material nodes).
As you can see in the file I provide, I could map the texture onto a cylinder (the rotated empty object serves of visual proof by intersecting with the upper bound of the texture).
Then I tried something to distort it to become equirectangular but I guess I got things mixed up. Been stuck for longer than I’d be proud to admit for such a simple problem so I’m calling for help.
PS: I used some drivers so you need to enable Auto-run Python scripts, also you need to open it in 2.8.
Cylindrical to equirectangular.zip (1.5 MB)