Home Unity

Glare of reflection

Good afternoon!
I need to make a screen space shader that adds glare(like a lens flare in the shape of a star) to reflections or bright spots.
That: Or that:
How could I do these effects?

Replies

  • Obscura
    Offline / Send Message
    Obscura grand marshal polycounter
    Guess you could buy a ready made shader on the asset store, or write your own, but if you don't know how to approach it, you would probably have really hard time writing it. Especially because this is not the simplest shader to make. What it needs to do is to apply regular box blur in multiple iterations, and mask the blur kernel with the glare texture. Pretty much like in bokeh depth of field. The points in the kernel can be treated as the sampling points of the glare texture. 
Sign In or Register to comment.