Removed presets, load all images via load directives (implements #9), removed obsolete code, added some improvements
This commit is contained in:
parent
53d42de4a5
commit
4b28a6427e
21 changed files with 231 additions and 205 deletions
15
examples/lowpass.gdshader
Normal file
15
examples/lowpass.gdshader
Normal file
|
@ -0,0 +1,15 @@
|
|||
shader_type canvas_item;
|
||||
|
||||
//!load ./swamp.jpg
|
||||
|
||||
// Settings
|
||||
const float threshold = 0.5;
|
||||
//
|
||||
|
||||
void fragment() {
|
||||
vec4 tex = texture(TEXTURE , UV);
|
||||
COLOR.r = min(tex.r, threshold);
|
||||
COLOR.g = min(tex.g, threshold);
|
||||
COLOR.b = min(tex.b, threshold);
|
||||
COLOR.a = tex.a;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue