Invert color :DDD

I know there is like a million of invert color shaders in this. 

But all of them suck. (JK)

So here is mine

 

I hope u like

Shader code
shader_type canvas_item;
uniform sampler2D existing_screen_texture: hint_screen_texture, filter_linear_mipmap;

void fragment() {
	vec3 new_color = texture(existing_screen_texture, SCREEN_UV, 0.0).rgb;
	new_color = vec3(1.0) - new_color;
	COLOR.rgb = new_color;
}
Tags
:D, Color, invert
The shader code and all code snippets in this post are under CC0 license and can be used freely without the author's permission. Images and videos, and assets depicted in those, do not fall under this license. For more info, see our License terms.

Related shaders

Simple color invert area.

Invert color

Invert Color

Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments