a bit more attempt at shader work

This commit is contained in:
muskit
2023-10-08 19:11:44 -07:00
parent 661d550821
commit b2a0daaf85
4 changed files with 45 additions and 37 deletions
+18 -10
View File
@@ -1,10 +1,18 @@
[gd_scene load_steps=4 format=3 uid="uid://bcindeb5bakb3"]
[gd_scene load_steps=7 format=3 uid="uid://bcindeb5bakb3"]
[ext_resource type="Script" path="res://Scripts/Things/TunnelObjects/THNotePlay.cs" id="1_e4xxi"]
[ext_resource type="Texture2D" uid="uid://cfm2r0ha81eum" path="res://_Assets/Textures/Notes/SwipeCCW.png" id="2_yb0qd"]
[ext_resource type="Shader" uid="uid://dm5rgp78v61ha" path="res://Shaders/SwipeArrow.tres" id="3_k16x0"]
[ext_resource type="Texture2D" uid="uid://cmaq66vbi80ug" path="res://_Assets/Textures/Notes/SlideArrow_Texture.png" id="4_rv322"]
[sub_resource type="LabelSettings" id="LabelSettings_up7en"]
font_size = 86
[sub_resource type="ShaderMaterial" id="ShaderMaterial_hasp1"]
shader = ExtResource("3_k16x0")
shader_parameter/Color = Color(0, 1, 0, 1)
shader_parameter/scrollMultiplier = 1.0
shader_parameter/arrow = ExtResource("4_rv322")
[sub_resource type="GradientTexture1D" id="GradientTexture1D_afqg4"]
width = 1
[node name="NoteSwipeCCW" type="Control" node_paths=PackedStringArray("noteBase")]
layout_mode = 3
@@ -27,10 +35,10 @@ texture = ExtResource("2_yb0qd")
patch_margin_left = 12
patch_margin_right = 12
[node name="Label" type="Label" parent="."]
offset_left = 9.0
offset_top = -159.0
offset_right = 421.0
offset_bottom = -48.0
text = ">>>>>>>>>>>>>>>>"
label_settings = SubResource("LabelSettings_up7en")
[node name="Control" type="TextureRect" parent="."]
material = SubResource("ShaderMaterial_hasp1")
offset_top = -64.0
offset_right = 150.0
offset_bottom = 136.0
rotation = -1.5708
texture = SubResource("GradientTexture1D_afqg4")