[gd_scene load_steps=19 format=3 uid="uid://wcsd1tb0quj3"]

[ext_resource type="PackedScene" uid="uid://ceovc780lyj1r" path="res://levels/lobby-scene/campfire/campfire.blend" id="1_5k61m"]
[ext_resource type="Script" uid="uid://mjtng3tgusx0" path="res://levels/lobby-scene/campfire/campfire.gd" id="1_pgdjc"]
[ext_resource type="Texture2D" uid="uid://ciegdylo5csyt" path="res://levels/lobby-scene/campfire/textures/smoke-particle-texture.png" id="2_4swet"]
[ext_resource type="AudioStream" uid="uid://bx01sxorforuo" path="res://levels/lobby-scene/campfire/fire.wav" id="4_u2sse"]

[sub_resource type="Gradient" id="Gradient_5k61m"]
offsets = PackedFloat32Array(0.175439, 0.859649)
colors = PackedColorArray(0, 0, 0, 1, 0.52549, 0.180392, 0.0745098, 1)

[sub_resource type="GradientTexture1D" id="GradientTexture1D_4swet"]
gradient = SubResource("Gradient_5k61m")

[sub_resource type="Curve" id="Curve_pgdjc"]
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.25, 1), 0.0, 0.0, 0, 0, Vector2(1, 0.393258), 0.0, 0.0, 0, 0]
point_count = 3

[sub_resource type="CurveTexture" id="CurveTexture_wwyeu"]
curve = SubResource("Curve_pgdjc")

[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_js7yv"]
angle_min = 1.07288e-05
angle_max = 360.0
direction = Vector3(0, 1, 0)
spread = 0.0
initial_velocity_min = 1.0
initial_velocity_max = 4.0
angular_velocity_min = -1.60933e-05
angular_velocity_max = 40.0
gravity = Vector3(0, 0, 0)
linear_accel_min = 0.999998
linear_accel_max = 5.0
scale_min = 0.1
scale_max = 0.6
scale_curve = SubResource("CurveTexture_wwyeu")
color_initial_ramp = SubResource("GradientTexture1D_4swet")
hue_variation_min = -1.0
hue_variation_max = -0.75
turbulence_enabled = true
turbulence_noise_strength = 0.1
turbulence_noise_scale = 10.0
turbulence_influence_min = 0.01
turbulence_influence_max = 0.03

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_5k61m"]
transparency = 1
blend_mode = 1
shading_mode = 0
disable_fog = true
vertex_color_use_as_albedo = true
albedo_color = Color(0.352941, 0.117647, 0.0666667, 1)
billboard_mode = 3
billboard_keep_scale = true
particles_anim_h_frames = 1
particles_anim_v_frames = 1
particles_anim_loop = false

[sub_resource type="QuadMesh" id="QuadMesh_p40iq"]
material = SubResource("StandardMaterial3D_5k61m")

[sub_resource type="Gradient" id="Gradient_4swet"]
offsets = PackedFloat32Array(0.175439, 1)

[sub_resource type="GradientTexture1D" id="GradientTexture1D_pgdjc"]
gradient = SubResource("Gradient_4swet")

[sub_resource type="Curve" id="Curve_wwyeu"]
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.25, 1), 0.0, 0.0, 0, 0, Vector2(1, 0.393258), 0.0, 0.0, 0, 0]
point_count = 3

[sub_resource type="CurveTexture" id="CurveTexture_js7yv"]
curve = SubResource("Curve_wwyeu")

[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_0feaq"]
angle_min = 1.07288e-05
angle_max = 360.0
direction = Vector3(0, 1, 0)
spread = 0.0
initial_velocity_min = 1.0
initial_velocity_max = 4.0
angular_velocity_min = -1.60933e-05
angular_velocity_max = 40.0
gravity = Vector3(0, 0, 0)
linear_accel_min = 0.999998
linear_accel_max = 2.0
scale_min = 0.1
scale_curve = SubResource("CurveTexture_js7yv")
color_initial_ramp = SubResource("GradientTexture1D_pgdjc")
hue_variation_min = -2.23517e-08
hue_variation_max = 0.03
turbulence_enabled = true
turbulence_noise_strength = 0.1
turbulence_noise_scale = 1.76
turbulence_influence_min = 0.01
turbulence_influence_max = 0.01

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_p40iq"]
transparency = 1
shading_mode = 0
vertex_color_use_as_albedo = true
albedo_texture = ExtResource("2_4swet")
billboard_mode = 3
billboard_keep_scale = true
particles_anim_h_frames = 1
particles_anim_v_frames = 1
particles_anim_loop = false

[sub_resource type="QuadMesh" id="QuadMesh_8eekk"]
material = SubResource("StandardMaterial3D_p40iq")

[node name="Campfire" type="Node3D" node_paths=PackedStringArray("fire_particles", "smoke_particles", "audio_stream_player_3d")]
script = ExtResource("1_pgdjc")
fire_particles = NodePath("FireParticles")
smoke_particles = NodePath("SmokeParticles")
audio_stream_player_3d = NodePath("AudioStreamPlayer3D")
sfx_files = Array[AudioStreamWAV]([ExtResource("4_u2sse")])

[node name="campfire" parent="." instance=ExtResource("1_5k61m")]

[node name="FireParticles" type="GPUParticles3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0211215, 0.220129, -0.0153611)
amount = 500
lifetime = 0.3
explosiveness = 0.08
randomness = 1.0
draw_order = 3
process_material = SubResource("ParticleProcessMaterial_js7yv")
draw_pass_1 = SubResource("QuadMesh_p40iq")

[node name="SmokeParticles" type="GPUParticles3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0211215, 0.220129, -0.0153611)
amount = 100
lifetime = 2.0
explosiveness = 0.06
randomness = 1.0
draw_order = 3
process_material = SubResource("ParticleProcessMaterial_0feaq")
draw_pass_1 = SubResource("QuadMesh_8eekk")

[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource("4_u2sse")
volume_db = -15.0
unit_size = 5.0
