Added filter rgb_uv_distort.gdshader and improved greyscale.gdshader
This commit is contained in:
parent
00bac825a0
commit
e18fd7a14e
3 changed files with 16 additions and 4 deletions
|
@ -1,10 +1,10 @@
|
|||
shader_type canvas_item;
|
||||
|
||||
void fragment() {
|
||||
// TODO: not only r
|
||||
vec4 tex = texture(TEXTURE , UV);
|
||||
COLOR.r = tex.r;
|
||||
COLOR.g = tex.r;
|
||||
COLOR.b = tex.r;
|
||||
float b = (COLOR.r + COLOR.g + COLOR.b) / 3.0;
|
||||
COLOR.r = b;
|
||||
COLOR.g = b;
|
||||
COLOR.b = b;
|
||||
COLOR.a = tex.a;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue