Search Unity

Question Expand Texture/Sprite

Discussion in 'Shader Graph' started by Chris-Trueman, Nov 17, 2022.

  1. Chris-Trueman

    Chris-Trueman

    Joined:
    Oct 10, 2014
    Posts:
    1,260
    I am looking to expand a sprites pixels in all directions.

    Scaling works fine if the image is rectangle or circle like. If the image is more complex like an X for example scaling does not give the effect I am after.

    I have tried a blur like shader, but it breaks when using a Sprite Atlas due to modifying the offset. Not sure how to get the sprites UV and Offset in Shader Graph.

    Is this possible?