sepia.shader 230 B

1234567891011
  1. shader_type canvas_item;
  2. uniform vec4 base : hint_color;
  3. void fragment() {
  4. vec3 c = textureLod(SCREEN_TEXTURE, SCREEN_UV, 0.0).rgb;
  5. float v = dot(c, vec3(0.33333, 0.33333, 0.33333));
  6. v = sqrt(v);
  7. COLOR.rgb = base.rgb * v;
  8. }