Zondre
This commit is contained in:
parent
c266d22f58
commit
2eb65c3092
24 changed files with 566 additions and 49 deletions
13
assets/shaders/greyscale.gdshader
Normal file
13
assets/shaders/greyscale.gdshader
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
shader_type canvas_item;
|
||||
|
||||
uniform float amount : hint_range(0.0, 1.0, 0.1);
|
||||
|
||||
vec4 luminance(vec4 col)
|
||||
{
|
||||
return vec4(vec3(0.2126*col.r+0.7152*col.g+0.0722*col.b),col.a);
|
||||
}
|
||||
|
||||
void fragment() {
|
||||
COLOR = mix(COLOR, luminance(COLOR),amount);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue