heliostat/src/shaders/invert.gdshader

9 lines
227 B
Plaintext
Raw Normal View History

2024-07-22 19:37:26 -06:00
shader_type canvas_item;
uniform sampler2D screen_texture: hint_screen_texture;
void fragment() {
vec4 color = vec4(texture(screen_texture, SCREEN_UV).rgb, texture(TEXTURE, UV).a);
COLOR = vec4(1.0 - color.rgb, color.a);
}