Rotate sprite using shader graph

I’m trying to rotate the texture on a sprite using shader graph. The rotation is only part of a bigger shader I’m creating, and everything works but the rotation. When I try to rotate a single square sprite it works fine. But when that sprite is part of a spritesheet it doesn’t work anymore. When I to rotate the texture it rotates the whole sheet, at 0 degrees rotation it’s fine, but once it starts rotating it rotates the whole sheet.
Another problem I see is rotating a rectangular sprite. When I rotate a rectangular sprite to 90 degrees the texture becomes deformed. I added screenshots for clarification.

This is a rectangular sprite, 64x128 pixels:
7387949--901763--alienPink_front.png

Rotated 90 degrees in game it looks like this, really flattened:

7387949--901769--upload_2021-8-4_13-16-47.png

The other problem is with spritesheets, for example this one:

7387949--901772--ExtraJump.png

Looks like this in game:

7387949--901775--upload_2021-8-4_13-19-6.png

But when rotated for example 20 degrees:

7387949--901778--upload_2021-8-4_13-20-3.png

It looks like it rotates the whole sheet and tries to squish them into a single sprite.

Anyone got any ideas what could be the problem and how to fix it?

I forgot to add my shader graph:

Noone?

Might have more response in the official forum: Unity Engine - Unity Discussions

Best of luck!

1 Like

Thanks, that might actually be a better place for it.

1 Like

For anyone arriving hear via search engine his new post is here:

https://discussions.unity.com/t/851712