{"id":1260,"date":"2012-10-17T01:32:05","date_gmt":"2012-10-16T22:32:05","guid":{"rendered":"http:\/\/unitycoder.com\/blog\/?p=1260"},"modified":"2014-06-04T23:25:54","modified_gmt":"2014-06-04T20:25:54","slug":"fake-motion-blur-shader","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2012\/10\/17\/fake-motion-blur-shader\/","title":{"rendered":"Fake Motion Blur Shader"},"content":{"rendered":"<p><a title=\"start webplayer demo\" href=\"http:\/\/unitycoder.com\/upload\/demos\/fake_motion_blur_shader_unity\/\" target=\"_blank\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1261\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2012\/10\/17\/fake-motion-blur-shader\/fake_motion_blur_shader_unity\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/10\/fake_motion_blur_shader_unity.jpg?fit=680%2C568&amp;ssl=1\" data-orig-size=\"680,568\" 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=\"fake_motion_blur_shader_unity\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/10\/fake_motion_blur_shader_unity.jpg?fit=680%2C568&amp;ssl=1\" class=\"alignnone size-full wp-image-1261\" title=\"fake_motion_blur_shader_unity\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/10\/fake_motion_blur_shader_unity.jpg?resize=680%2C568\" alt=\"\" width=\"680\" height=\"568\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/10\/fake_motion_blur_shader_unity.jpg?w=680&amp;ssl=1 680w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/10\/fake_motion_blur_shader_unity.jpg?resize=300%2C250&amp;ssl=1 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/a><\/p>\n<p>Some quick test for making fake motion blur shader with unity indie.. (or more like a trail..would need to blur other parts also?)<\/p>\n<p>Currently its creating the &#8220;trail&#8221; based on distance.. (using velocity would make a difference?)<\/p>\n<p><strong>Warning, Huge Limitations:<\/strong><br \/>\n&#8211; Shader example doesn&#8217;t have any textures (you would need to copy the vertex shader code to your own shader)<br \/>\n&#8211; Example script(js) follows mouse only, to follow an object, you need to modify it<\/p>\n<p><strong>Webplayer:<\/strong><br \/>\n<a title=\"start webplayer demo\" href=\"http:\/\/unitycoder.com\/upload\/demos\/fake_motion_blur_shader_unity\/\" target=\"_blank\">http:\/\/unitycoder.com\/upload\/demos\/fake_motion_blur_shader_unity\/<\/a><\/p>\n<p><strong>Source available:<br \/>\n<\/strong><\/p>\n<p><strong>1Eur<\/strong> [digishop id=&#8221;11&#8243;]<br \/>\n&#8211; Includes: Shader, Example Scene (same as webplayer) **Remember that this is only tested with default sphere mesh, other objects would cause problems.<\/p>\n<p><strong><br \/>\n<\/strong><\/p>\n<p>&#8212;<\/p>\n<p><strong>image#2:<\/strong> using Ethan mesh (blur goes to wrong direction and broken otherwise too)<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"2710\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2012\/10\/17\/fake-motion-blur-shader\/ethan_blur\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/10\/ethan_blur.jpg?fit=541%2C401&amp;ssl=1\" data-orig-size=\"541,401\" 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=\"ethan_blur\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/10\/ethan_blur.jpg?fit=541%2C401&amp;ssl=1\" class=\"alignnone size-full wp-image-2710\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/10\/ethan_blur.jpg?resize=541%2C401\" alt=\"ethan_blur\" width=\"541\" height=\"401\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/10\/ethan_blur.jpg?w=541&amp;ssl=1 541w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/10\/ethan_blur.jpg?resize=300%2C222&amp;ssl=1 300w\" sizes=\"auto, (max-width: 541px) 100vw, 541px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some quick test for making fake motion blur shader with unity indie.. (or more like a trail..would need to blur other parts also?) Currently its creating the &#8220;trail&#8221; based on distance.. (using velocity would make a difference?) Warning, Huge Limitations: &#8211; Shader example doesn&#8217;t have [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1261,"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":[160,7,205,340,339,14],"class_list":["post-1260","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-demos","category-unity3d","tag-blur","tag-fake","tag-indie","tag-motion-blur","tag-motionblur","tag-shader"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/10\/fake_motion_blur_shader_unity.jpg?fit=680%2C568&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-kk","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/1260","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=1260"}],"version-history":[{"count":9,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/1260\/revisions"}],"predecessor-version":[{"id":2977,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/1260\/revisions\/2977"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/1261"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=1260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=1260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=1260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}