Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Best way to blur a sprite?

Discussion in 'Shaders' started by GeriB, Jun 4, 2019.

  1. GeriB

    GeriB

    Joined:
    Apr 26, 2017
    Posts:
    192
    What's the best way to blur a sprite/texture through shader?

    I've seen some methods. And they give very poor/blocky results.
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,329
    Have a pre blurred version of the texture that you fade to.

    Otherwise the "blocky" methods are as good as it gets with out a significant performance impact. Most likely the reason it's getting blocky is because you're pushing the blur too large.
     
    GeriB likes this.