make SwipeArrow color changing part of the shader parameter

This commit is contained in:
msk
2023-10-09 23:22:48 -07:00
parent 43776de41b
commit 66bd12dffb
5 changed files with 45 additions and 30 deletions
+3 -4
View File
@@ -7,11 +7,10 @@
[ext_resource type="Texture2D" uid="uid://cmaq66vbi80ug" path="res://_Assets/Textures/Notes/SlideArrow_Texture.png" id="4_v0t51"]
[ext_resource type="Texture2D" uid="uid://kjoqem41xatr" path="res://_Assets/Textures/Notes/SlideArrow_Mask.png" id="5_dafyh"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_k510k"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_ub4cc"]
resource_local_to_scene = true
shader = ExtResource("3_de2t7")
shader_parameter/ArrowColor = Color(0, 1, 0, 1)
shader_parameter/isCwShape = false
shader_parameter/isCwShape = true
shader_parameter/TileMult = 6.0
shader_parameter/scrollMultiplier = 2.0
shader_parameter/arrow = ExtResource("4_v0t51")
@@ -40,7 +39,7 @@ patch_margin_left = 12
patch_margin_right = 12
[node name="SwipeArrow" parent="." instance=ExtResource("3_b1dle")]
material = SubResource("ShaderMaterial_k510k")
material = SubResource("ShaderMaterial_ub4cc")
layout_mode = 0
offset_top = -35.0
offset_bottom = 733.0