blur.gdshader 233 B

12345678
  1. shader_type canvas_item;
  2. uniform sampler2D screen_texture : hint_screen_texture, filter_linear_mipmap;
  3. uniform float amount: hint_range(0.0, 5.0);
  4. void fragment() {
  5. COLOR.rgb = textureLod(screen_texture, SCREEN_UV, amount).rgb;
  6. }