pandemonium_demo_projects/2d/screen_space_shaders/shaders/negative.shader

8 lines
140 B
GLSL

shader_type canvas_item;
void fragment() {
vec3 c = textureLod(SCREEN_TEXTURE, SCREEN_UV, 0.0).rgb;
c = vec3(1.0) - c;
COLOR.rgb = c;
}