Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | RoomofRR | |
Old Version | Published before Godot 3 was released. |
How does one make a shader that inverts color of screen including light?
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | RoomofRR | |
Old Version | Published before Godot 3 was released. |
How does one make a shader that inverts color of screen including light?
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