main.tscn 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. [gd_scene load_steps=18 format=3 uid="uid://rj7yrj3c672g"]
  2. [ext_resource type="Script" path="res://camera.gd" id="1"]
  3. [ext_resource type="PackedScene" uid="uid://deqpan4silm2n" path="res://waypoint.tscn" id="2"]
  4. [sub_resource type="StandardMaterial3D" id="5"]
  5. albedo_color = Color(0.25098, 0.470588, 0.996078, 1)
  6. [sub_resource type="BoxMesh" id="6"]
  7. material = SubResource("5")
  8. [sub_resource type="StandardMaterial3D" id="7"]
  9. albedo_color = Color(0.435294, 0.917647, 0.380392, 1)
  10. [sub_resource type="BoxMesh" id="8"]
  11. material = SubResource("7")
  12. [sub_resource type="StandardMaterial3D" id="9"]
  13. albedo_color = Color(0.862745, 0.764706, 0.12549, 1)
  14. [sub_resource type="BoxMesh" id="10"]
  15. material = SubResource("9")
  16. [sub_resource type="StandardMaterial3D" id="11"]
  17. albedo_color = Color(0.996078, 0.266667, 0.25098, 1)
  18. [sub_resource type="BoxMesh" id="12"]
  19. material = SubResource("11")
  20. [sub_resource type="StandardMaterial3D" id="1"]
  21. albedo_color = Color(0.6, 0.564706, 0.423529, 1)
  22. [sub_resource type="BoxMesh" id="2"]
  23. material = SubResource("1")
  24. size = Vector3(16, 2, 16)
  25. [sub_resource type="StandardMaterial3D" id="3"]
  26. albedo_color = Color(0.788235, 0.788235, 0.788235, 1)
  27. [sub_resource type="BoxMesh" id="4"]
  28. material = SubResource("3")
  29. size = Vector3(4, 1.5, 4)
  30. [sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_1hqbf"]
  31. sky_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
  32. ground_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
  33. [sub_resource type="Sky" id="Sky_47fsp"]
  34. sky_material = SubResource("ProceduralSkyMaterial_1hqbf")
  35. [sub_resource type="Environment" id="Environment_ob0ys"]
  36. background_mode = 2
  37. sky = SubResource("Sky_47fsp")
  38. tonemap_mode = 3
  39. tonemap_white = 6.0
  40. [node name="Main" type="Node3D"]
  41. [node name="BlueCube" type="MeshInstance3D" parent="."]
  42. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5, 0, -5)
  43. mesh = SubResource("6")
  44. [node name="WaypointAnchor" type="Marker3D" parent="BlueCube"]
  45. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
  46. [node name="Waypoint" parent="BlueCube/WaypointAnchor" instance=ExtResource("2")]
  47. modulate = Color(0.501961, 0.764706, 1, 1)
  48. text = "Blue Waypoint"
  49. [node name="GreenCube" type="MeshInstance3D" parent="."]
  50. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5, 0, 5)
  51. mesh = SubResource("8")
  52. [node name="WaypointAnchor" type="Marker3D" parent="GreenCube"]
  53. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
  54. [node name="Waypoint" parent="GreenCube/WaypointAnchor" instance=ExtResource("2")]
  55. modulate = Color(0.419608, 1, 0.427451, 1)
  56. text = "Green Waypoint"
  57. [node name="YellowCube" type="MeshInstance3D" parent="."]
  58. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5, 0, 5)
  59. mesh = SubResource("10")
  60. [node name="WaypointAnchor" type="Marker3D" parent="YellowCube"]
  61. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
  62. [node name="Waypoint" parent="YellowCube/WaypointAnchor" instance=ExtResource("2")]
  63. modulate = Color(1, 0.992157, 0.419608, 1)
  64. text = "Yellow Waypoint (non-sticky)"
  65. sticky = false
  66. [node name="RedCube" type="MeshInstance3D" parent="."]
  67. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5, 0, -5)
  68. mesh = SubResource("12")
  69. [node name="WaypointAnchor" type="Marker3D" parent="RedCube"]
  70. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
  71. [node name="Waypoint" parent="RedCube/WaypointAnchor" instance=ExtResource("2")]
  72. modulate = Color(1, 0.466667, 0.427451, 1)
  73. text = "Red Waypoint"
  74. [node name="Camera3D" type="Camera3D" parent="."]
  75. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 8)
  76. script = ExtResource("1")
  77. [node name="Label" type="Label" parent="."]
  78. offset_left = 10.0
  79. offset_top = 10.0
  80. offset_right = 325.0
  81. offset_bottom = 36.0
  82. theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
  83. theme_override_constants/outline_size = 3
  84. theme_override_font_sizes/font_size = 18
  85. text = "Press Esc or F10 to toggle mouse capture"
  86. [node name="Ground" type="MeshInstance3D" parent="."]
  87. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.5, 0)
  88. mesh = SubResource("2")
  89. [node name="WhiteCube" type="MeshInstance3D" parent="."]
  90. mesh = SubResource("4")
  91. [node name="Environment" type="WorldEnvironment" parent="."]
  92. environment = SubResource("Environment_ob0ys")
  93. [node name="Sun" type="DirectionalLight3D" parent="Environment"]
  94. transform = Transform3D(-0.866025, -0.433013, 0.25, 0, 0.5, 0.866026, -0.5, 0.75, -0.433013, 0, 0, 0)
  95. shadow_enabled = true
  96. shadow_bias = 0.04
  97. shadow_blur = 1.5
  98. directional_shadow_max_distance = 40.0