Main.tscn 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. [gd_scene load_steps=11 format=2]
  2. [ext_resource path="res://Main.gd" type="Script" id=1]
  3. [ext_resource path="res://Player.tscn" type="PackedScene" id=2]
  4. [ext_resource path="res://ChunkSystem.gd" type="Script" id=3]
  5. [ext_resource path="res://tex/eso.jpg" type="Texture" id=4]
  6. [ext_resource path="res://shader/ground_shader.tres" type="Material" id=5]
  7. [sub_resource type="PanoramaSky" id=9]
  8. panorama = ExtResource( 4 )
  9. [sub_resource type="Environment" id=10]
  10. background_mode = 2
  11. background_sky = SubResource( 9 )
  12. background_energy = 4.61
  13. ambient_light_color = Color( 1, 1, 1, 1 )
  14. tonemap_mode = 3
  15. glow_enabled = true
  16. [sub_resource type="SpatialMaterial" id=6]
  17. albedo_color = Color( 0.168627, 0.164706, 0.913725, 1 )
  18. detail_enabled = true
  19. detail_blend_mode = 0
  20. detail_uv_layer = 0
  21. [sub_resource type="SphereMesh" id=5]
  22. material = SubResource( 6 )
  23. radius = 7.0
  24. height = 14.0
  25. [sub_resource type="PlaneMesh" id=11]
  26. material = ExtResource( 5 )
  27. size = Vector2( 20, 20 )
  28. [node name="root" type="Spatial"]
  29. script = ExtResource( 1 )
  30. __meta__ = {
  31. "_edit_lock_": true
  32. }
  33. [node name="WorldEnvironment" type="WorldEnvironment" parent="."]
  34. environment = SubResource( 10 )
  35. [node name="DirectionalLight" type="DirectionalLight" parent="WorldEnvironment"]
  36. transform = Transform( 1, 0, 0, 0, 0.81189, 0.583811, 0, -0.583811, 0.81189, 14.964, 0, 0 )
  37. visible = false
  38. [node name="Player" parent="." instance=ExtResource( 2 )]
  39. [node name="Chunks" type="Spatial" parent="."]
  40. script = ExtResource( 3 )
  41. __meta__ = {
  42. "_edit_lock_": true
  43. }
  44. [node name="UI" type="Control" parent="."]
  45. margin_right = 40.0
  46. margin_bottom = 40.0
  47. __meta__ = {
  48. "_edit_use_anchors_": false
  49. }
  50. [node name="1" type="TextEdit" parent="UI"]
  51. margin_right = 333.0
  52. margin_bottom = 40.0
  53. rect_pivot_offset = Vector2( 186, 75 )
  54. text = "1"
  55. __meta__ = {
  56. "_edit_use_anchors_": false
  57. }
  58. [node name="2" type="TextEdit" parent="UI"]
  59. margin_left = 397.0
  60. margin_top = 1.0
  61. margin_right = 789.0
  62. margin_bottom = 41.0
  63. rect_pivot_offset = Vector2( 33, 74 )
  64. text = "2"
  65. __meta__ = {
  66. "_edit_use_anchors_": false
  67. }
  68. [node name="3" type="TextEdit" parent="UI"]
  69. margin_top = 44.0
  70. margin_right = 331.0
  71. margin_bottom = 84.0
  72. text = "3"
  73. __meta__ = {
  74. "_edit_use_anchors_": false
  75. }
  76. [node name="4" type="TextEdit" parent="UI"]
  77. margin_left = 396.0
  78. margin_top = 47.0
  79. margin_right = 789.0
  80. margin_bottom = 87.0
  81. text = "4"
  82. [node name="reference" type="MeshInstance" parent="."]
  83. visible = false
  84. mesh = SubResource( 5 )
  85. material/0 = null
  86. [node name="plane" type="MeshInstance" parent="."]
  87. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 2.98035, 2.37647, 0.319568 )
  88. visible = false
  89. mesh = SubResource( 11 )
  90. material/0 = null