hurrmmm/godot/control_scheme/control_target_overlay.gdsh...

20 lines
344 B
Plaintext
Raw Normal View History

2023-11-11 13:08:24 -07:00
shader_type spatial;
#include "res://shaders/noise.gdshaderinc"
render_mode depth_prepass_alpha, depth_test_disabled;
void vertex() {
VERTEX *= 0.999;
}
void fragment() {
float scale = 50.0;
float speed = 1000.0;
float f = random2(round(UV * scale)/scale + round(TIME*speed)/speed);
if (f > 0.1) {
discard;
}
ALBEDO = vec3(0.0);
}