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
- [GreaseMonkey] Unity Forum Fixer
- UnityHub: Make Hub application background Translucent
- Customize SpriteShapeRenderer quality (but has issues)
- Editor tool: Copy selected gameobject’s names into clipboard as rows (for Excel)
- Editor tool: Replace string in selected gameobject’s names
- UnityHub: Enable built-in Login Dialog (no more browser login/logout issues!)
- Use TikTok-TTS in Unity (with WebRequest)
- Create Scene Thumbnail Image using OnSceneSaved & OnPreviewGUI
- webgl+javascript TTS
- Using Moonsharp (LUA) + Unity Webgl
- Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
- Custom Unity Hub Project Template Preview Image/Video (using HTML+CSS in package description)
Recent Comments
- Vector3 maths for dummies! on
- UnityHub: Make Hub application background Translucent on
- UnityHub: Make Hub application background Translucent on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- [Asset Store] Point Cloud Viewer & Tools on
- [Asset Store] Point Cloud Viewer & Tools on
- ffmpeg stream raw video into Unity Texture2D on
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!