{"id":581,"date":"2012-02-10T00:44:48","date_gmt":"2012-02-09T21:44:48","guid":{"rendered":"http:\/\/unitycoder.com\/blog\/?p=581"},"modified":"2013-08-31T10:35:18","modified_gmt":"2013-08-31T07:35:18","slug":"2d-waves-vertex-displacement-shader","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2012\/02\/10\/2d-waves-vertex-displacement-shader\/","title":{"rendered":"2D Wave Map + Vertex Displacement Shader"},"content":{"rendered":"<p><a title=\"start webplayer demo\" href=\"http:\/\/unitycoder.com\/upload\/demos\/m2DWaves2\/\" target=\"_blank\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"582\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2012\/02\/10\/2d-waves-vertex-displacement-shader\/m2dwavesdisplacement\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/02\/m2DWavesDisplacement.jpg?fit=680%2C393&amp;ssl=1\" data-orig-size=\"680,393\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"m2DWavesDisplacement\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/02\/m2DWavesDisplacement.jpg?fit=680%2C393&amp;ssl=1\" class=\"alignnone size-full wp-image-582\" title=\"m2DWavesDisplacement\" alt=\"\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/02\/m2DWavesDisplacement.jpg?resize=680%2C393\" width=\"680\" height=\"393\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/02\/m2DWavesDisplacement.jpg?w=680&amp;ssl=1 680w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/02\/m2DWavesDisplacement.jpg?resize=300%2C173&amp;ssl=1 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/a><\/p>\n<p>This is a new test version of the &#8220;<a title=\"http:\/\/unitycoder.com\/blog\/2011\/11\/27\/2d-waterfluid-fx\/\" href=\"http:\/\/unitycoder.com\/blog\/2011\/11\/27\/2d-waterfluid-fx\/\" target=\"_blank\">2D Water\/Fluid fx<\/a>&#8220;. <em>(screenshot looks better than the actualk demo : )<\/em><\/p>\n<p><strong>Features:<\/strong><br \/>\n&#8211; Vertex displacement shader (using the wave data as displacement map)<br \/>\n&#8211; UV anim + UV mixing for that water (too bad its not tiled texture (image\u00a0 source: <a title=\"http:\/\/www.cgtextures.com\/\" href=\"http:\/\/www.cgtextures.com\/\" target=\"_blank\">Cg Textures<\/a>)<br \/>\n&#8211; Foam fx in the shader didnt really work, and it caused the overly dark areas while painting..<br \/>\n&#8211; High res plane..<\/p>\n<p><strong>Webplayer:<\/strong><br \/>\n<a title=\"http:\/\/unitycoder.com\/upload\/demos\/m2DWaves2\/\" href=\"http:\/\/unitycoder.com\/upload\/demos\/m2DWaves2\/\" target=\"_blank\">http:\/\/unitycoder.com\/upload\/demos\/m2DWaves2\/<\/a><\/p>\n<p><strong>Download:<\/strong><br \/>\n<a title=\"Download Source\" href=\"http:\/\/unitycoder.com\/download\/index2.php?link=159&amp;uid=un1t3c0d5r\" target=\"_blank\">2DWaves.unityPackage<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a new test version of the &#8220;2D Water\/Fluid fx&#8220;. (screenshot looks better than the actualk demo : ) Features: &#8211; Vertex displacement shader (using the wave data as displacement map) &#8211; UV anim + UV mixing for that water (too bad its not [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":582,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[4,3],"tags":[65,163,162,119,47,45,60,161,46],"class_list":["post-581","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-demos","category-unity3d","tag-2d","tag-bump","tag-displacement","tag-fluid","tag-sea","tag-wakes","tag-water","tag-wave","tag-waves"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/02\/m2DWavesDisplacement.jpg?fit=680%2C393&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-9n","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/581","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/comments?post=581"}],"version-history":[{"count":9,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/581\/revisions"}],"predecessor-version":[{"id":2391,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/581\/revisions\/2391"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/582"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=581"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}