diff options
| author | metamuffin <metamuffin@disroot.org> | 2024-06-23 20:05:28 +0200 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2024-06-23 20:05:28 +0200 |
| commit | 3885cbfae528608350804f704dba9c82fdbfd027 (patch) | |
| tree | 384a37820cf43d1868493600a8e0566c78b9ab4a /client/textures/interact_marker.gdshader | |
| parent | 93221433e704e1c98cc84c55caefddb85c2d5717 (diff) | |
| download | hurrycurry-3885cbfae528608350804f704dba9c82fdbfd027.tar hurrycurry-3885cbfae528608350804f704dba9c82fdbfd027.tar.bz2 hurrycurry-3885cbfae528608350804f704dba9c82fdbfd027.tar.zst | |
move files around
Diffstat (limited to 'client/textures/interact_marker.gdshader')
| -rw-r--r-- | client/textures/interact_marker.gdshader | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/client/textures/interact_marker.gdshader b/client/textures/interact_marker.gdshader deleted file mode 100644 index 94b7323d..00000000 --- a/client/textures/interact_marker.gdshader +++ /dev/null @@ -1,27 +0,0 @@ -shader_type spatial; - -uniform float max_width = .1; -uniform float marker_length = .5; -uniform float pulse_speed = 4.; -uniform bool interactive = false; - -void fragment() { - if (interactive) { - ALBEDO = vec3(15., 0., 0.); - } else { - ALBEDO = vec3(.1, .1, .1); - } - vec2 uv = abs(2. * UV.xy - 1.); - float m_length = marker_length / max_width; - float anim; - if (interactive) { - anim = sin(TIME * pulse_speed) * .5 + 1.; - } else { - anim = .5; - } - float alpha = step( - 1. - max_width * anim, max(uv.x, uv.y)) - * step(1. - max_width * m_length, min(uv.x, uv.y) - ); - ALPHA = alpha; -} |