summaryrefslogtreecommitdiff
path: root/client/player/interact_marker.gdshader
diff options
context:
space:
mode:
Diffstat (limited to 'client/player/interact_marker.gdshader')
-rw-r--r--client/player/interact_marker.gdshader36
1 files changed, 18 insertions, 18 deletions
diff --git a/client/player/interact_marker.gdshader b/client/player/interact_marker.gdshader
index 1a1b9c63..eee76270 100644
--- a/client/player/interact_marker.gdshader
+++ b/client/player/interact_marker.gdshader
@@ -23,22 +23,22 @@ 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;
+ 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;
}