Add sobel filter (edge detection)
This commit is contained in:
parent
9d23efea63
commit
77273f9c1b
4 changed files with 62 additions and 0 deletions
10
examples/sobel.gdshader
Normal file
10
examples/sobel.gdshader
Normal 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);
|
||||
}
|
1
examples/sobel.gdshader.uid
Normal file
1
examples/sobel.gdshader.uid
Normal file
|
@ -0,0 +1 @@
|
|||
uid://h376mk1fq4ky
|
Loading…
Add table
Add a link
Reference in a new issue