shaderlib: Implement gaussian_blur(); implements #39
This commit is contained in:
parent
85d33d5d77
commit
d08329c750
3 changed files with 42 additions and 2 deletions
8
examples/blur.gdshader
Normal file
8
examples/blur.gdshader
Normal 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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue