10
2012
2D Wave Map + Vertex Displacement Shader
This is a new test version of the “2D Water/Fluid fx“. (screenshot looks better than the actualk demo : )
Features:
– Vertex displacement shader (using the wave data as displacement map)
– UV anim + UV mixing for that water (too bad its not tiled texture (image source: Cg Textures)
– Foam fx in the shader didnt really work, and it caused the overly dark areas while painting..
– High res plane..
Webplayer:
http://unitycoder.com/upload/demos/m2DWaves2/
Download:
2DWaves.unityPackage
Related Posts
16 Comments + Add Comment
Leave a comment
Recent posts
- Favorites in PackageManager
- LudumDare59 : Signal
- Unity Editor: Tree Generator
- Leaf/Foliage Generator Tools (Runs in Browser)
- Testing Unity AI Beta
- Ways to Support UnityCoder Development
- Using UI Slider to Create 5-Star Rating Element
- Game Music Library For Unity (editor plugin)
- Fontastic : Easily Test Fonts in Unity Editor!
- GeoTiff Importer & Terrain Generator for Unity
- Create Baked DropShadow for UI images
- .JP2 Ortho Image Converter to PNG/JPG/TIFF
Recent Comments
- on Mesh Exploder (sources)
- on Sprite Sheet Flip Book Shader
- on Sprite Sheet Flip Book Shader
- on [Asset Store] PolygonCollider2D Optimizer
- on Trajectory Test Scene 2.0
- on Vector3 maths for dummies!
- on UnityHub 3.6.0: Remove Version Control & Cloud Dashboard columns
- on Using RenderDoc with Unity (graphics debugger)
Coin:
CUgDSbRqFcAumDSAcdKDvuXsw26VdkJe8C8WGUQHBAGS
An article by













Awesome work dude, looking great and was looking forward to checking it out.
But it seems the download provided is for the ‘old’ version(the one linked to in the first sentence), not the one shown in the screenshot/webplayer.
Is this intentional, or a mistake?
Link fixed
Hmmm, it says the download link has expired.
it says the download link has expired !
can you upload again ?
tnx
hi can you please tell me what does the “remap” function do ? i cant understand it !!
float remap(float value, float from1, float to1, float from2, float to2)
{
return (value – from1) / (to1 – from1) * (to2 – from2) + from2;
}
thank u
Its same as this,
http://www.processing.org/reference/map_.html
(kind of scales from one range to another range)
amazing plugin: Surface Waves
http://forum.unity3d.com/threads/surface-waves-dynamic-rivers-lakes-and-oceans.250330/
this shader support mobile ?
Havent tested.. but could be too slow for mobile.
Hi, the shader gives the ” incorrect number of arguments to numeric-type constructor ” at line 101, that line is ( half4 sum = half4(0.0); ) .
How can I fix it pls ?
try half4 sum = half4(0,0,0,0);
I’m late to the party here but it looks like the download link isn’t working anymore. Is it still available anywhere?
Try without https:// , havent fixed the downloader yet for https..Soon(tm)
http://unitycoder.com/blog/2012/02/10/2d-waves-vertex-displacement-shader/
That’s worked, thanks 🙂
I can’t download using the link. It says
Deprecated: Function mcrypt_get_iv_size() is deprecated in dl2.php on line 13
thanks, should be fixed now!