forked from team-sg/hero-mark-2
new exit graphics
This commit is contained in:
parent
caa33c0592
commit
e256cc15cb
6 changed files with 151 additions and 134 deletions
16
shaders/beam_of_sin.gdshader
Normal file
16
shaders/beam_of_sin.gdshader
Normal 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));
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue