Oct
17
2012

Fake Motion Blur Shader

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 “trail” based on distance.. (using velocity would make a difference?)

Warning, Huge Limitations:
– Shader example doesn’t have any textures (you would need to copy the vertex shader code to your own shader)
– Example script(js) follows mouse only, to follow an object, you need to modify it

Webplayer:
http://unitycoder.com/upload/demos/fake_motion_blur_shader_unity/

Source available:

1Eur [digishop id=”11″]
– Includes: Shader, Example Scene (same as webplayer) **Remember that this is only tested with default sphere mesh, other objects would cause problems.


image#2: using Ethan mesh (blur goes to wrong direction and broken otherwise too)

ethan_blur


11 Comments + Add Comment

  • Kinda upset with this website. The source will always be available later, later, later… but later never comes…..

    • There are new sources every month, most of these are just quick tests and they would need “cleaning up” before posting.

      *Also if someone just wants the source right away, no matter what condition it is, they can donate & request.

  • hiya just stumbled on this website, nice i like unity tech demo’s 🙂

    this one is a 404!

  • It crashes with Unity 3.5.7.f6…Why?
    I would like to see how the scene is done…

    • I emailed you the sources, the scene seems to hang unity 3.5.x, but works on 4.x.

  • Is it working with skinned meshes?

    • Added screenshot from the unity samples assets Ethan mesh, not really working.. (would need big modifications to support textures, get correct “blur” direction etc..)

  • this is just scaling and transparency right? that actually pretty clever

    • basically yes, vertices are moved in the shader to “lag behind” and then transparency adjusted (for those vertices)

Leave a comment

Connect

Twitter View LinkedIn profile Youtube Github Join Discord Twitch Instagram BlueSky

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.