Search Unity

Question Split sprites, UV and rotation

Discussion in 'Shader Graph' started by WryMim, Jan 13, 2022.

  1. WryMim

    WryMim

    Joined:
    Mar 16, 2019
    Posts:
    69
    Hello everyone, I'm at a dead end, I need your help.
    There is one big picture, in runtime I split it into Sprite sprites.Create.
    When outputting a sprite, I set the material to it with my shader.
    I want to make a SEPARATE uv rotation for each sprite. But when you rotate, other parts of the image are visible (because, as I understood, the UV is general, from the full picture, and not the cut piece).

    How to make "Rotate" correctly and calculate "Center" exactly in the center of a separate sprite?
     
  2. WryMim

    WryMim

    Joined:
    Mar 16, 2019
    Posts:
    69