1bit-game-jam/shaders/light_shader.gdshader

7 lines
No EOL
213 B
Text

shader_type canvas_item;
uniform sampler2D screen_texture : hint_screen_texture, repeat_disable, filter_nearest;
void fragment() {
COLOR = vec4(vec3(1,1,1) - texture(screen_texture, SCREEN_UV).rgb, 1);
}