Does anyone know of any assets that incorporates this? If not, I imagine creating a shader that animates the UVs would be the way to go but the question then becomes : how do you specify direction for a river that twists and turns?
.
Does anyone know of any assets that incorporates this? If not, I imagine creating a shader that animates the UVs would be the way to go but the question then becomes : how do you specify direction for a river that twists and turns?
.
Something I came across a while ago and had bookmarked to try later was this thread
http://forum.unity3d.com/threads/97662-Animate-water-using-Flow-Maps
In this thread another guy talks about making a flow editor
http://algoholic.eu/flow-shader-fix-flow-editor/
Something that might be simpler is using some sort of overlapping planes facing in different directions. and just applying the same texture offset script.
I have not tried any of the above Ideas but they are on my list of things to do.
I need to map all the major rivers of the world and animating the uv’s/texture offsets would be too expensive via scripting, so I need to go with a shader solution. I had some ideas regarding a flow-map approach, but the flow shader seems to take care of all the bases. Thanks for the link!
.
Aha! That looks perfect!
.
It was shown in SIGGRAPH 2010. And Valve software also tells how to do it here
There are samples all over the net if you search for “flow shader” and easy to convert for unity.
I found a plugin which can help to set the direction of water flow. It’s really helped me