contrasted.gdshader 235 B

123456789
  1. shader_type canvas_item;
  2. uniform sampler2D screen_texture : hint_screen_texture, filter_linear_mipmap;
  3. void fragment() {
  4. vec3 c = textureLod(screen_texture, SCREEN_UV, 0.0).rgb;
  5. c = mod(c + vec3(0.5), vec3(1.0));
  6. COLOR.rgb = c;
  7. }