Add collaborative surface drawing
This commit is contained in:
parent
6b7ef4c11b
commit
b92c55562d
28 changed files with 3504 additions and 2 deletions
12
drawing/surface_drawing_highlight.gdshader
Normal file
12
drawing/surface_drawing_highlight.gdshader
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue