Rotate (generated) UVs of environment texture without mapping node I'm trying to rotate an environment texture (around Z), but without the mapping node, as it lacks sockets.

I've successfully rebuilt, the node tree detailed here: Use another node to control Vector Mapping

Works great for Object UVs, but not for generated UVs of an environment map.
I've tried translating it along U, which also didnt work. Any suggestions?

edit: the linked node tree works for environment maps, IF you connect the Z channel from the initial separate node to the final combine node.
This is a node setup for a z-axis rotation.  The other 2 axis' are just as easy but adding all three axis' into one formula gets very complicated.

To rotate the image, adjust the Value node that is located at the top-left in the "Deg 2 Rad" frame.

Note: The math nodes all have two "value" fields but only the upper field is used for trigonometry so just ignore any values in the lower fields.