1 [gd_scene load_steps=22 format=3 uid="uid://dxmuwbdsw1cux"]
3 [ext_resource type="Script" uid="uid://dhljelflbvhq0" path="res://asset/projectile/projectile.gd" id="1_a85iw"]
4 [ext_resource type="Script" uid="uid://bfwn8qkon3k0y" path="res://asset/character/model/hurtbox.gd" id="2_qxf0c"]
5 [ext_resource type="Shader" uid="uid://cb1uqpepu0fu8" path="res://asset/projectile/projectile_outer_shader.tres" id="3_eos0u"]
6 [ext_resource type="Shader" uid="uid://bl8vglcme53cn" path="res://asset/projectile/projectile_inner_shader.tres" id="4_k4v71"]
7 [ext_resource type="Shader" uid="uid://w1pxn1nolx5n" path="res://asset/projectile/projectile_trail_shader.tres" id="5_4ycb3"]
9 [sub_resource type="SphereShape3D" id="SphereShape3D_a85iw"]
12 [sub_resource type="ShaderMaterial" id="ShaderMaterial_eos0u"]
14 shader = ExtResource("3_eos0u")
15 shader_parameter/base_color = Color(2, 0.134, 0.709, 1)
16 shader_parameter/rotation_speed = 0.83
17 shader_parameter/speed = 1.4
19 [sub_resource type="CylinderMesh" id="CylinderMesh_eos0u"]
25 [sub_resource type="ShaderMaterial" id="ShaderMaterial_4ycb3"]
27 shader = ExtResource("4_k4v71")
28 shader_parameter/base_color = Color(4, 0.397, 2, 1)
29 shader_parameter/fresnel_power = 4.0
31 [sub_resource type="SphereMesh" id="SphereMesh_eos0u"]
33 [sub_resource type="Gradient" id="Gradient_4ycb3"]
34 offsets = PackedFloat32Array(0.4, 0.5, 0.6)
35 colors = PackedColorArray(0.416952, 0.00912567, 0.0775737, 1, 3, 0, 2, 1, 0.416952, 0.00912567, 0.0775737, 1)
36 metadata/_snap_enabled = true
38 [sub_resource type="GradientTexture1D" id="GradientTexture1D_xofgy"]
39 gradient = SubResource("Gradient_4ycb3")
41 [sub_resource type="ShaderMaterial" id="ShaderMaterial_xofgy"]
43 shader = ExtResource("5_4ycb3")
44 shader_parameter/colors = SubResource("GradientTexture1D_xofgy")
45 shader_parameter/speed = 1.0
47 [sub_resource type="PlaneMesh" id="PlaneMesh_k4v71"]
48 size = Vector2(0.77, 3)
49 center_offset = Vector3(0, 0, -1.5)
51 [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_4ycb3"]
55 disable_ambient_light = true
57 vertex_color_use_as_albedo = true
58 vertex_color_is_srgb = true
60 [sub_resource type="Gradient" id="Gradient_xofgy"]
61 colors = PackedColorArray(4, 1, 2, 1, 0.646777, 0, 0.300858, 1)
63 [sub_resource type="GradientTexture1D" id="GradientTexture1D_e5gjc"]
64 gradient = SubResource("Gradient_xofgy")
67 [sub_resource type="Curve" id="Curve_4ycb3"]
68 _data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
71 [sub_resource type="CurveTexture" id="CurveTexture_xofgy"]
72 curve = SubResource("Curve_4ycb3")
74 [sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_4ycb3"]
75 lifetime_randomness = 0.46
76 particle_flag_align_y = true
78 emission_sphere_radius = 0.2
79 direction = Vector3(0, 0, -2)
81 initial_velocity_min = 2.0
82 initial_velocity_max = 10.0
83 angular_velocity_min = -4.18002
84 angular_velocity_max = 79.79
85 gravity = Vector3(0, 0, 0)
86 scale_curve = SubResource("CurveTexture_xofgy")
87 color_ramp = SubResource("GradientTexture1D_e5gjc")
88 hue_variation_min = -0.1
89 hue_variation_max = 0.07
91 [sub_resource type="QuadMesh" id="QuadMesh_xofgy"]
92 size = Vector2(0.02, 0.06)
95 [node name="Projectile" type="Node3D"]
96 script = ExtResource("1_a85iw")
98 [node name="Model" type="Node3D" parent="."]
100 [node name="Hurtbox" type="Area3D" parent="Model"]
101 script = ExtResource("2_qxf0c")
102 metadata/_custom_type_script = "uid://bfwn8qkon3k0y"
104 [node name="CollisionShape3D" type="CollisionShape3D" parent="Model/Hurtbox"]
105 shape = SubResource("SphereShape3D_a85iw")
106 debug_color = Color(1, 0.6, 0.701961, 0.419608)
108 [node name="Visual" type="Node3D" parent="."]
109 transform = Transform3D(0.6, 0, 0, 0, 0.6, 0, 0, 0, 0.6, 0, 0, 0)
111 [node name="OuterFlame" type="MeshInstance3D" parent="Visual"]
112 transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, -0.0675984)
113 material_override = SubResource("ShaderMaterial_eos0u")
115 mesh = SubResource("CylinderMesh_eos0u")
117 [node name="InnerBall" type="MeshInstance3D" parent="Visual"]
118 transform = Transform3D(0.35, 0, 0, 0, 0.35, 0, 0, 0, 0.35, 0.00562227, -0.000371352, 0.000506699)
119 material_override = SubResource("ShaderMaterial_4ycb3")
121 mesh = SubResource("SphereMesh_eos0u")
123 [node name="Trail" type="MeshInstance3D" parent="Visual"]
124 material_override = SubResource("ShaderMaterial_xofgy")
126 mesh = SubResource("PlaneMesh_k4v71")
128 [node name="Sparks" type="GPUParticles3D" parent="Visual"]
129 material_override = SubResource("StandardMaterial3D_4ycb3")
133 process_material = SubResource("ParticleProcessMaterial_4ycb3")
134 draw_pass_1 = SubResource("QuadMesh_xofgy")