new exit graphics

This commit is contained in:
Haze Weathers 2023-10-05 19:44:49 -04:00
parent caa33c0592
commit e256cc15cb
6 changed files with 151 additions and 134 deletions

View file

@ -0,0 +1,16 @@
shader_type canvas_item;
uniform float speed = 1.0;
uniform float cycle_offset = 0.0;
uniform float wave_length = 1.0;
uniform float thickness = 0.05;
float plot(vec2 st, float pct) {
return step( pct - thickness, st.x) -
step( pct + thickness, st.x);
}
void fragment() {
float x = sin(UV.y * wave_length + TIME * speed + cycle_offset)*0.5+0.5;
COLOR = COLOR * vec4(1.0, 1.0, 1.0, plot(UV * vec2(1.2, 1.0) + vec2(-0.1, 0.0), x));
}