aboutsummaryrefslogtreecommitdiff
path: root/client/map/progress.gd
diff options
context:
space:
mode:
authornokoe <nokoe@mailbox.org>2024-06-24 02:00:24 +0200
committernokoe <nokoe@mailbox.org>2024-06-24 02:01:09 +0200
commit372bc4897f81fabb919ab79bce6d6d7aa00fad78 (patch)
treeb094c5dbad652850e287413fd1101a4c180063a0 /client/map/progress.gd
parent4c51bd75579b148ba94f5a87aa8bd8ff19569705 (diff)
downloadhurrycurry-372bc4897f81fabb919ab79bce6d6d7aa00fad78.tar
hurrycurry-372bc4897f81fabb919ab79bce6d6d7aa00fad78.tar.bz2
hurrycurry-372bc4897f81fabb919ab79bce6d6d7aa00fad78.tar.zst
add some items
Diffstat (limited to 'client/map/progress.gd')
-rw-r--r--client/map/progress.gd3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/map/progress.gd b/client/map/progress.gd
index 4d6494f6..61a0c7dd 100644
--- a/client/map/progress.gd
+++ b/client/map/progress.gd
@@ -16,6 +16,9 @@
class_name ProgressBar3D
extends MeshInstance3D
+func _ready():
+ self.get_active_material(0).duplicate(true)
+
func set_progress(progress: float, bad: bool):
var mat: ShaderMaterial = self.get_active_material(0)
mat.set_shader_parameter("progress", progress)