1
0
This repository has been archived on 2026-07-26. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
countdown-mayhem/assets/shaders/blur.gdshader
T
2026-07-26 18:54:03 +02:00

12 lines
445 B
Plaintext

shader_type canvas_item;
// Allows you to sample the pixels rendered behind this node
uniform sampler2D screen_texture : hint_screen_texture, filter_linear_mipmap;
uniform float lod : hint_range(0.0, 5.0) = 2.0;
uniform vec4 color_tint : source_color = vec4(1.0, 1.0, 1.0, 0.1);
void fragment() {
vec4 blurred_screen = textureLod(screen_texture, SCREEN_UV, lod);
COLOR = mix(blurred_screen, vec4(color_tint.rgb, 1.0), color_tint.a);
}