Windy Grass [Mobile]

Flat Grass

Large wave shapes(R), Distort wave shapes(G), Grass blades mask(B)

Large wave shapes(R), Distort wave shapes(G), Grass blades mask(B)

I wanted to make some animated grass that's a bit more mobile friendly! Shader i made using Unity shader graph, and a single 256x256 texture(3 channels used) for the grass and wind masks.

Texture Breakdown:
(R)Large wave forms are scrolling to give the rolling wind effect.
(G)Higher frequency distortion is scrolled at a different rate from large wave forms, to break up the repetition.
(B)Grass blades mask is used in two ways -
1. Added to the wave gen as an additional uv offset.
2. Then sampled again to provide a color lerp between shadow and highlight colors.