[gd_scene load_steps=8 format=3 uid="uid://b0ob0t4rhygcx"]

[ext_resource type="Texture2D" uid="uid://f2grte4vssk1" path="res://assets/textures/spark.png" id="1_a0mii"]

[sub_resource type="Curve" id="Curve_bhmd1"]
max_value = 0.1
_data = [Vector2(0, 0.1), 0.0, -0.335887, 0, 0, Vector2(1, 0), -0.00487914, 0.0, 0, 0]
point_count = 2

[sub_resource type="CurveTexture" id="CurveTexture_84hkj"]
curve = SubResource("Curve_bhmd1")

[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_4njd4"]
emission_shape = 1
emission_sphere_radius = 0.2
direction = Vector3(0, 1, 0)
spread = 35.0
initial_velocity_min = 1.0
initial_velocity_max = 6.0
scale_curve = SubResource("CurveTexture_84hkj")
collision_mode = 1
collision_friction = 0.3
collision_bounce = 0.4

[sub_resource type="Curve" id="Curve_qsag0"]
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 2

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_rhieu"]
transparency = 1
cull_mode = 2
albedo_texture = ExtResource("1_a0mii")
emission_enabled = true
emission = Color(1, 1, 1, 1)
emission_energy_multiplier = 16.0
texture_filter = 2
billboard_keep_scale = true
use_particle_trails = true

[sub_resource type="RibbonTrailMesh" id="RibbonTrailMesh_tcst1"]
material = SubResource("StandardMaterial3D_rhieu")
shape = 0
size = 0.5
section_length = 0.5
curve = SubResource("Curve_qsag0")

[node name="SparkShower" type="GPUParticles3D"]
emitting = false
amount = 36
lifetime = 5.0
one_shot = true
explosiveness = 0.9
randomness = 0.5
trail_enabled = true
trail_lifetime = 0.15
process_material = SubResource("ParticleProcessMaterial_4njd4")
draw_pass_1 = SubResource("RibbonTrailMesh_tcst1")
