shaderlib: Implement gaussian_blur(); implements #39

This commit is contained in:
ChaoticByte 2025-01-11 15:59:58 +01:00
parent 85d33d5d77
commit d08329c750
No known key found for this signature in database
3 changed files with 42 additions and 2 deletions

8
examples/blur.gdshader Normal file
View file

@ -0,0 +1,8 @@
shader_type canvas_item;
//!load ./images/swamp.jpg
#include "res://shaderlib/blur.gdshaderinc"
void fragment() {
COLOR = gaussian_blur(TEXTURE, UV, 48, 24.0);
}