negative.gdshader 219 B

12345678910
  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 = vec3(1.0) - c;
  6. COLOR.rgb = c;
  7. }