aboutsummaryrefslogtreecommitdiff
path: root/client/gui/menus/rating/desaturate.gdshader
blob: e6861560adb7d9c96217692b3a7e1022985c6a3e (plain)
1
2
3
4
5
6
7
shader_type canvas_item;

uniform float t : hint_range(0.0, 1.0);

void fragment() {
	COLOR.rgb = mix(vec3(pow((COLOR.r+COLOR.g+COLOR.b)/3.,3.)),COLOR.rgb,t);
}