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