Hey guys!
I've been working on grass through the weekend. I got 3 gifs for you, showing my progress
Animation is done in the vertex shader. There's a problem with blending "shake" and "wind" animation. Actually I'm following this tutorial, if anyone is interested:
http://http.developer.nvidia.com/GPUGems3/gpugems3_ch16.htmlThe cool thing about shader animations is that i can change parameters in runtime and have a different look. Compared to whole process of changing animation, importing it in Unity, it's a great time saver. Another cool thing is that i can have a global wind parameter. The wind is just a direction and strength. but I can, for example, change it during gameplay on some event. I can also have the trees and grass bend in the same direction and in the same way using only one global parameter. Very cool stuff.