Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Wind shader for my 2D game doesn't seem to affect all sprites. Am I missing something?

Discussion in 'Shader Graph' started by unity_DzQYD8sSQKlzYA, Jan 24, 2021.

  1. unity_DzQYD8sSQKlzYA

    unity_DzQYD8sSQKlzYA

    Joined:
    Sep 24, 2019
    Posts:
    1
    So I just created a quick wind shader for the foliage in my game and noticed that some objects don't seem to move at all. (Some of the trees in the middle in this gif aren't swaying like the rest of them are. I increased the wind strength to make it easier to see)

    I cant figure out why this would happen, they seem to start moving if I drag the objects away from the center in the editor which makes me think it might have something to do with a world position node in my shader.

    Excuse me if the graph is messy, I made it mostly on a whim without much care.