Files
uarep-ctl/shaders/blur.gdshader

10 lines
272 B
Plaintext

// A Gaussian blur shader for Godot 4.3
shader_type canvas_item;
uniform sampler2D SCREEN_TEXTURE : hint_screen_texture, filter_linear_mipmap;
uniform float lod: hint_range(0.0, 3.0) = 2.0;
void fragment()
{
COLOR.rgb = texture(SCREEN_TEXTURE, SCREEN_UV, lod).rgb;
}