How to blur Line2D using shader?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By fiddlemouth

I’m trying to blur a Line2D to achieve this sort of effect:

I’m relatively new to shaders, but I can’t find anything about this. Using the TEXTURE input doesn’t seem to work. I can make a shader to blur everything under the CanvasItem, but not exclusively the Line2D.

:bust_in_silhouette: Reply From: exuin

Shaders only affect inside the texture, so the line2d won’t appear blurry since the blur goes outside its texture. Perhaps you can try to use BackBufferCopy and screen texture to blur the line?