mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
46 lines
1.1 KiB
Plaintext
46 lines
1.1 KiB
Plaintext
[gd_scene load_steps=6 format=2]
|
|
|
|
[ext_resource path="res://assets/spineboy/spineboy-data-res.tres" type="SpineSkeletonDataResource" id=1]
|
|
|
|
[sub_resource type="Shader" id=1]
|
|
code = "shader_type canvas_item;
|
|
|
|
void fragment() {
|
|
COLOR = texture(TEXTURE, UV);
|
|
COLOR.r = 0.0;
|
|
}"
|
|
|
|
[sub_resource type="ShaderMaterial" id=2]
|
|
shader = SubResource( 1 )
|
|
|
|
[sub_resource type="Shader" id=3]
|
|
code = "shader_type canvas_item;
|
|
|
|
void fragment() {
|
|
COLOR = texture(TEXTURE, UV);
|
|
COLOR.b = 0.0;
|
|
}"
|
|
|
|
[sub_resource type="ShaderMaterial" id=4]
|
|
shader = SubResource( 3 )
|
|
|
|
[node name="Node2D" type="Node2D"]
|
|
|
|
[node name="SpineSprite" type="SpineSprite" parent="."]
|
|
position = Vector2( 501, 507 )
|
|
scale = Vector2( 0.546374, 0.546373 )
|
|
skeleton_data_res = ExtResource( 1 )
|
|
normal_material = SubResource( 2 )
|
|
preview_skin = "Default"
|
|
preview_animation = "-- Empty --"
|
|
preview_frame = false
|
|
preview_time = 0.0
|
|
|
|
[node name="GunSlot" type="SpineSlotNode" parent="SpineSprite"]
|
|
show_behind_parent = true
|
|
position = Vector2( 40.8753, -276.036 )
|
|
rotation = 0.837234
|
|
scale = Vector2( 1, 1 )
|
|
slot_name = "gun"
|
|
normal_material = SubResource( 4 )
|