aboutsummaryrefslogtreecommitdiff
path: root/client/scripts/progress.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/scripts/progress.gd')
-rw-r--r--client/scripts/progress.gd7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/scripts/progress.gd b/client/scripts/progress.gd
new file mode 100644
index 00000000..22a2392f
--- /dev/null
+++ b/client/scripts/progress.gd
@@ -0,0 +1,7 @@
+class_name ProgressBar3D
+extends MeshInstance3D
+
+func set_progress(progress: float, bad: bool):
+ var mat: ShaderMaterial = self.get_active_material(0)
+ mat.set_shader_parameter("progress", progress)
+ mat.set_shader_parameter("bad", bad)