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: Rotated 90 degrees in game it looks like this, really flattened: The other problem is with spritesheets, for example this one: Looks like this in game: But when rotated for example 20 degrees: 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?
Might have more response in the official forum: https://forum.unity.com/forums/shader-graph.346/ Best of luck!
For anyone arriving hear via search engine his new post is here: https://forum.unity.com/threads/rotate-sprite-using-shader-graph.1154762/