Доработка. Шейдер для простого размытия.

This commit is contained in:
sasha80
2025-12-01 15:05:10 +03:00
parent 835970785f
commit 902d9b518e
2 changed files with 10 additions and 0 deletions

9
shaders/blur.gdshader Normal file
View File

@@ -0,0 +1,9 @@
// 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;
}

View File

@@ -0,0 +1 @@
uid://qe0q7aqqbe4u