aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/map/progress.gd3
-rw-r--r--client/map/progress.tscn1
2 files changed, 1 insertions, 3 deletions
diff --git a/client/map/progress.gd b/client/map/progress.gd
index 61a0c7dd..4d6494f6 100644
--- a/client/map/progress.gd
+++ b/client/map/progress.gd
@@ -16,9 +16,6 @@
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)
diff --git a/client/map/progress.tscn b/client/map/progress.tscn
index 19b72af3..7a0629a1 100644
--- a/client/map/progress.tscn
+++ b/client/map/progress.tscn
@@ -7,6 +7,7 @@
size = Vector2(0.75, 0.1)
[sub_resource type="ShaderMaterial" id="ShaderMaterial_4k6cy"]
+resource_local_to_scene = true
render_priority = 0
shader = ExtResource("1_6f2a0")
shader_parameter/progress = 0.0