3D Rotation on a 2D Texture

Hello, So I got Chatty G to help me come up with the GLSL in the attached TOX file. It is almost what I want it to do, but it breaks at degree angles above or below +/- 20 degrees
rotate3D.tox (1.6 KB)

ChatGPT4, ShaderToy, and the Facebook Hivemind helped me get this together! A proper working 2D Texture 3D rotation GLSL Top stored in a Container with a basic In Out and Rotate X, Y, Z parameter exposed. Uses Raymarching
rotate3D.tox (3.3 KB)
tested on 16:9 content