[gd_scene load_steps=6 format=3 uid="uid://2p5pcpd6p31s"]

[ext_resource type="Script" path="res://ProceduralGenerator.gd" id="1"]
[ext_resource type="MeshLibrary" uid="uid://cylktvmebocbc" path="res://meshes.meshlib" id="1_bh3ry"]
[ext_resource type="Script" path="res://Player.gd" id="3"]

[sub_resource type="CapsuleMesh" id="1"]

[sub_resource type="Environment" id="Environment_ph1u4"]
volumetric_fog_enabled = true
volumetric_fog_density = 0.01

[node name="Node3D" type="Node3D"]

[node name="GridMap" type="GridMap" parent="."]
transform = Transform3D(0.999999, 0, 0, 0, 1, 0, 0, 0, 1, -4.1257, -0.945569, 2.46936)
mesh_library = ExtResource("1_bh3ry")
cell_size = Vector3(1, 1, 1)
cell_octant_size = 512
cell_center_x = false
cell_center_y = false
cell_center_z = false
script = ExtResource("1")
ChunkWidth = 64
ChunkHeight = 64
metadata/_editor_floor_ = Vector3(0, -1, 0)

[node name="Player" type="Node3D" parent="GridMap"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 20, 0)
visible = false
script = ExtResource("3")

[node name="MeshInstance3D" type="MeshInstance3D" parent="GridMap/Player"]
mesh = SubResource("1")

[node name="Camera3D" type="Camera3D" parent="GridMap/Player"]
transform = Transform3D(1, 0, 0, 0, 0.642788, 0.766044, 0, -0.766044, 0.642788, 0, -8.53136, 8.249)

[node name="MapUpdateTimer" type="Timer" parent="GridMap"]
wait_time = 0.1
autostart = true

[node name="DirectionalLight3D" type="DirectionalLight3D" parent="GridMap"]
transform = Transform3D(0.907777, 0.404197, -0.112094, 0, 0.267238, 0.96363, 0.419452, -0.874762, 0.242593, 0, 0, 0)
light_color = Color(0.67451, 0.847059, 0.901961, 1)
light_energy = 3.0
light_bake_mode = 0
shadow_enabled = true
shadow_transmittance_bias = -5.122
directional_shadow_pancake_size = 65.8

[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_ph1u4")

[connection signal="timeout" from="GridMap/MapUpdateTimer" to="GridMap" method="_on_MapUpdateTimer_timeout"]
