Add collaborative surface drawing

This commit is contained in:
Alexander Sellite 2026-08-01 22:55:39 -04:00
parent 6b7ef4c11b
commit b92c55562d
28 changed files with 3504 additions and 2 deletions

View file

@ -0,0 +1,12 @@
shader_type spatial;
render_mode unshaded, cull_disabled, depth_draw_never;
uniform sampler2D screen_texture : hint_screen_texture, repeat_disable, filter_nearest;
void fragment() {
vec3 surface_color = textureLod(screen_texture, SCREEN_UV, 0.0).rgb;
vec3 inverted_color = vec3(1.0) - surface_color;
ALBEDO = inverted_color;
EMISSION = inverted_color;
}