world.tscn 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. [gd_scene load_steps=10 format=3 uid="uid://3wtpjm677uyk"]
  2. [ext_resource type="PackedScene" uid="uid://1s4asqpay67m" path="res://player/player.tscn" id="1"]
  3. [ext_resource type="Script" path="res://world/voxel_world.gd" id="2"]
  4. [ext_resource type="Script" path="res://world/environment.gd" id="4"]
  5. [ext_resource type="PackedScene" uid="uid://dk8arl1if3lyr" path="res://menu/ingame/pause_menu.tscn" id="5"]
  6. [ext_resource type="Script" path="res://menu/debug.gd" id="6"]
  7. [ext_resource type="Theme" uid="uid://ckax6htygmelo" path="res://menu/theme/theme.tres" id="7"]
  8. [sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_culy1"]
  9. sky_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
  10. ground_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
  11. [sub_resource type="Sky" id="Sky_heg3k"]
  12. sky_material = SubResource("ProceduralSkyMaterial_culy1")
  13. [sub_resource type="Environment" id="Environment_lwytn"]
  14. background_mode = 2
  15. sky = SubResource("Sky_heg3k")
  16. tonemap_mode = 2
  17. fog_enabled = true
  18. fog_sun_scatter = 0.3
  19. fog_sky_affect = 0.5
  20. [node name="World3D" type="Node3D"]
  21. [node name="Player" parent="." instance=ExtResource("1")]
  22. [node name="Debug" type="Label" parent="."]
  23. visible = false
  24. anchors_preset = 15
  25. anchor_right = 1.0
  26. anchor_bottom = 1.0
  27. offset_left = 20.0
  28. offset_right = -20.0
  29. offset_bottom = -20.0
  30. grow_horizontal = 2
  31. grow_vertical = 2
  32. theme = ExtResource("7")
  33. theme_override_font_sizes/font_size = 48
  34. script = ExtResource("6")
  35. [node name="PauseMenu" parent="." instance=ExtResource("5")]
  36. [node name="VoxelWorld" type="Node" parent="."]
  37. script = ExtResource("2")
  38. [node name="Environment" type="WorldEnvironment" parent="."]
  39. environment = SubResource("Environment_lwytn")
  40. script = ExtResource("4")
  41. [node name="Sun" type="DirectionalLight3D" parent="Environment"]
  42. transform = Transform3D(-0.866025, -0.433013, 0.25, 0, 0.5, 0.866026, -0.5, 0.75, -0.433013, 0, 0, 0)
  43. shadow_enabled = true
  44. shadow_bias = 0.04
  45. [node name="MeshInstance3D" type="MeshInstance3D" parent="."]