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
14
examples/channel_offset.gdshader
Normal file
14
examples/channel_offset.gdshader
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
shader_type canvas_item;
|
||||
|
||||
//!load ./swamp.jpg
|
||||
|
||||
const vec2 offset_r = vec2(-0.002, -0.002);
|
||||
const vec2 offset_g = vec2(0., 0.);
|
||||
const vec2 offset_b = vec2(0.002, 0.002);
|
||||
|
||||
void fragment() {
|
||||
COLOR.r = texture(TEXTURE , UV + offset_r).r;
|
||||
COLOR.g = texture(TEXTURE , UV + offset_g).g;
|
||||
COLOR.b = texture(TEXTURE , UV + offset_b).b;
|
||||
COLOR.a = COLOR.a;
|
||||
}
|
||||
Reference in a new issue