This commit is contained in:
Фёдор Веселов 2024-09-10 19:36:20 +05:00
commit 2eb65c3092
24 changed files with 566 additions and 49 deletions

View 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);
}