breadwinner/resources/shaders/blur_shader.gdshader
Balogh Krisztián 18d9a149a3 added main menu
when you quit the game, it basically crashes and the audio lags for now.
changable audio is still not fixed, the child spatial_audio3d still plays too loud.
2026-08-16 22:38:23 +02:00

10 lines
No EOL
381 B
Text

shader_type canvas_item;
// filter_linear_mipmap tells Godot to generate the blurred layers!
uniform sampler2D screen_texture : hint_screen_texture, filter_linear_mipmap;
uniform float blur_amount : hint_range(0.0, 5.0) = 2.0;
void fragment() {
// textureLod grabs the pre-blurred image directly. No loops required!
COLOR = textureLod(screen_texture, SCREEN_UV, blur_amount);
}