[Shaders] How to I make a inverted color shader?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By RoomofRR
:warning: Old Version Published before Godot 3 was released.

How does one make a shader that inverts color of screen including light?

:bust_in_silhouette: Reply From: Nuno Donato

I think inverting colors is just a matter of subtracting them from white.
So, vec3(1,1,1)-your_rgb_vector would give you an inverted colors vector