Add sobel filter (edge detection)

This commit is contained in:
ChaoticByte 2025-03-31 15:41:31 +02:00
parent 9d23efea63
commit 77273f9c1b
No known key found for this signature in database
4 changed files with 62 additions and 0 deletions

10
examples/sobel.gdshader Normal file
View file

@ -0,0 +1,10 @@
shader_type canvas_item;
//!load ./images/noisy.png
#include "./shaderlib/sobel.gdshaderinc"
void fragment() {
// Sobel Filter
COLOR = sobel(TEXTURE, UV);
}