Simple Blur Godot 4.1
A simple BLRU Shader based on this shader for Godot 4.1
Shader code
shader_type canvas_item;
uniform float blur_amount : hint_range(-2.0, 10.0);
uniform float mix_amount : hint_range(0.0, 1.0);
uniform vec4 color_over : source_color;
uniform sampler2D SCREEN_TEXTURE : hint_screen_texture, filter_linear_mipmap;
void fragment() {
vec4 blurred = textureLod(SCREEN_TEXTURE, SCREEN_UV, blur_amount);
blurred.a = 255.0;
vec4 fin = mix(blurred, color_over, mix_amount);
COLOR = fin;
}
currently the best blur that i could find. almost doesn’t affect performance
On Godot 4.4 is dont work well for me :/
It works fine with Godot 4.4 for me. Maybe something is wrong with your setup?
Not working in godot 4.4
In version 4.4, everything works like a charm — you just need to set the blur amount in the shader parameters