Godot Version
Godot 4.3 stable
Question
Good afternoon everybody. I would like to ask someone who understands shaders to create a blur shader for the Label node.
I would like this shader to have a changeable blur value and also, I can choose the color of this blur. See an example:
Please, can someone who has experience help me? I didn’t find anything on the Godot Shader website that would help me…
Create colorRect on top of the text and add this shader:
shader_type canvas_item;
uniform float lod: hint_range(0.0, 5) = 0.0; //changes blur strength
uniform sampler2D SCREEN_TEXTURE : hint_screen_texture, filter_linear_mipmap;
void fragment(){
vec4 color = texture(SCREEN_TEXTURE, SCREEN_UV, lod);
COLOR = color;
}
shader is not mine, it is from Simple Blur - Godot Shaders
@superplaystudios I would like a blur effect that only blurs the text. Using the “ColorRect” node with this script blurs the entire area that the quoted node occupies.