Vignette with changeable blur size
vignetter shader ported from shadertoy to godot4 with changeable blur size
Shader code
//Vignette Shader
//see more info about shaders here --> https://github.com/TechnoLukas/My-favourite-shaders-links
//ported with https://github.com/jayaarrgh/shadertoy2godot (with some hand fixing)
//on shadertoy https://www.shadertoy.com/view/WsGSD3
shader_type canvas_item;
uniform float size;
void fragment() {
vec2 uv=UV;
vec2 suv = abs(uv * 2.0 - 1.0);
vec4 col = texture(TEXTURE, uv);
vec2 u = vec2(size / (1.0/TEXTURE_PIXEL_SIZE));
u = smoothstep(vec2(0), u, 1.0 - suv);
COLOR = col * u.x * u.y;
}
How Do i Apply it