[gd_scene load_steps=15 format=3 uid="uid://dwtxjvprjyx8p"]

[ext_resource type="ArrayMesh" uid="uid://cbbreijekdjel" path="res://base-environments/youth_room/shaders/raising-lava.res" id="1_kkx3t"]
[ext_resource type="ArrayMesh" uid="uid://7bpgy7uud2ai" path="res://base-environments/youth_room/shaders/falling-lava.res" id="2_tokpx"]
[ext_resource type="Shader" uid="uid://bcuduhlnij5mc" path="res://base-environments/youth_room/shaders/glass.tres" id="3_e48d5"]
[ext_resource type="ArrayMesh" uid="uid://dpof211rbvl30" path="res://base-environments/youth_room/shaders/lava-glass.res" id="4_bg48h"]
[ext_resource type="Shader" path="res://base-environments/youth_room/shaders/lava-lamp.gdshader" id="4_y2lnx"]
[ext_resource type="ArrayMesh" uid="uid://bsxcltpxwi5c2" path="res://base-environments/youth_room/shaders/lava-metal.res" id="5_4c8kc"]

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_7uei1"]
albedo_color = Color(0.933333, 0.933333, 0.933333, 1)
metallic = 1.0
roughness = 0.4

[sub_resource type="ShaderMaterial" id="ShaderMaterial_2vmtt"]
render_priority = 0
shader = ExtResource("3_e48d5")
shader_parameter/glass_tint = Color(0.631373, 0.584314, 0.376471, 1)
shader_parameter/lightcolor = Color(1.5, 2, 0.76, 1)

[sub_resource type="Gradient" id="Gradient_r18tr"]
colors = PackedColorArray(0.705882, 6.36471, 0.211765, 1, 0.279697, 0.985193, 0.315141, 1)

[sub_resource type="GradientTexture2D" id="GradientTexture2D_42bqf"]
gradient = SubResource("Gradient_r18tr")

[sub_resource type="ShaderMaterial" id="ShaderMaterial_31q3g"]
render_priority = 0
shader = ExtResource("4_y2lnx")
shader_parameter/drop_size = 0.015
shader_parameter/stretch_compensatioon = 35.0
shader_parameter/fill = 0.655
shader_parameter/speed = 0.01
shader_parameter/brightness = 1.0
shader_parameter/gradient = SubResource("GradientTexture2D_42bqf")

[sub_resource type="Animation" id="Animation_0ijgr"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector3(0, 0, 0)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("../falling:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector3(0, 0, 0)]
}

[sub_resource type="Animation" id="Animation_ovxyq"]
resource_name = "lavalamp"
length = 60.0
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 60),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector3(0, 6.28319, 0), Vector3(0, 0, 0)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("../falling:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 60),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector3(0, 6.28319, 0), Vector3(0, 0, 0)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_88lyq"]
_data = {
"RESET": SubResource("Animation_0ijgr"),
"lavalamp": SubResource("Animation_ovxyq")
}

[node name="lava-lamp" type="MeshInstance3D"]
material_override = SubResource("StandardMaterial3D_7uei1")
mesh = ExtResource("5_4c8kc")

[node name="Lava-glass" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1.02, 0, 0, 0, 1, 0, 0.193229, 0)
material_override = SubResource("ShaderMaterial_2vmtt")
mesh = ExtResource("4_bg48h")
skeleton = NodePath("")

[node name="raising" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.188474, 0)
material_override = SubResource("ShaderMaterial_31q3g")
mesh = ExtResource("2_tokpx")
skeleton = NodePath("")

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
root_node = NodePath("../raising")
libraries = {
"": SubResource("AnimationLibrary_88lyq")
}
autoplay = "lavalamp"

[node name="falling" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.188474, 0)
material_override = SubResource("ShaderMaterial_31q3g")
mesh = ExtResource("1_kkx3t")
skeleton = NodePath("")
