Simple Blur

A super simple blur effect.

Use lod variable to regulate strength.

Shader code
shader_type canvas_item;

uniform float lod: hint_range(0.0, 5) = 0.0;

void fragment(){
	vec4 color = texture(SCREEN_TEXTURE, SCREEN_UV, lod);
	COLOR = color;
}
Tags
2d, blur, simple

Related shaders

Simple blur, mixed with a color

Variable Blur – Works with parallax layers

2D Motion Blur

The shader code and all code snippets in this post are under CC0 license and can be used freely without the author's permission. Images and videos, and assets depicted in those, do not fall under this license. For more info, see our License terms.
guest
3 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
SamWise
SamWise
2 months ago

What do I apply it to?

mreliptik
mreliptik
2 months ago
Reply to  SamWise

Anything that will cover the whole screen, so usually a ColorRect for example. This is because the shader in a screen shader, meaning it will use SCREEN_TEXTURE and SCREEN_UV

lentsius
lentsius
29 days ago

It should be “textureLod” instead of “texture” I believe.