2D pixelated grass waving shader

Hello @SamsTheGreatest!
If you want to further pixelate the effect, I advise you to draw it on some render predicate and then use that data to pixelate it in a separate shader pass :slight_smile:
The above was about trying to do it on a single sprite (yes, it was pixel art before), with it’s vertex and fragment programs. Later on, during development of my game, I realized it is tedious and too much waste to wave every single sprite.

You can achieve it by cheating a bit - all the grass you can draw into separate predicate - then you add another pass with “wind” - air particles visualisation, that is not visible to player, but you have a data for shader using this to wave grass. At the end you can pixelate the result, to be pixel perfect, but for my game, where camera is moving it was a pain to make it right, without any stuttering so I resigned for now :wink: