main.tscn 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. [gd_scene load_steps=12 format=2]
  2. [ext_resource path="res://assets/planet/planet.tres" type="Material" id=1]
  3. [ext_resource path="res://camera.gd" type="Script" id=2]
  4. [ext_resource path="res://assets/planet/newplanet.obj" type="ArrayMesh" id=3]
  5. [ext_resource path="res://assets/panorama_image.png" type="Texture" id=4]
  6. [ext_resource path="res://assets/sun.png" type="Texture" id=5]
  7. [ext_resource path="res://resources/planets/planet_2/planet.obj" type="ArrayMesh" id=6]
  8. [ext_resource path="res://resources/planets/planet_2/planet.tres" type="Material" id=7]
  9. [ext_resource path="res://planet_switcher.gd" type="Script" id=8]
  10. [ext_resource path="res://planet.gd" type="Script" id=9]
  11. [sub_resource type="PanoramaSky" id=1]
  12. radiance_size = 3
  13. panorama = ExtResource( 4 )
  14. [sub_resource type="Environment" id=2]
  15. background_mode = 2
  16. background_sky = SubResource( 1 )
  17. ambient_light_color = Color( 1, 1, 1, 1 )
  18. ambient_light_energy = 16.0
  19. [node name="main" type="Spatial"]
  20. script = ExtResource( 8 )
  21. [node name="sun" type="Sprite3D" parent="."]
  22. transform = Transform( 1400, 0, 0, 0, 1400, 0, 0, 0, 1400, 0, 0, 0 )
  23. billboard = 1
  24. texture = ExtResource( 5 )
  25. [node name="OmniLight" type="OmniLight" parent="sun"]
  26. transform = Transform( 100, 0, 0, 0, 100, 0, 0, 0, 100, 0, 0, 0 )
  27. light_energy = 2.0
  28. omni_range = 1.5e+12
  29. [node name="WorldEnvironment" type="WorldEnvironment" parent="."]
  30. environment = SubResource( 2 )
  31. [node name="the_real_camera" type="InterpolatedCamera" parent="."]
  32. near = 0.1
  33. far = 1e+08
  34. target = NodePath("../planet/planet/camera_mover/helper/camera")
  35. speed = 8.0
  36. enabled = true
  37. [node name="planet2" type="Spatial" parent="."]
  38. transform = Transform( 6, 0, 0, 0, 6, 0, 0, 0, 6, 15000, 0, 0 )
  39. [node name="planet2" type="MeshInstance" parent="planet2"]
  40. transform = Transform( 2, 0, 0, 0, 2, 0, 0, 0, 2, 14166.7, 0, 0 )
  41. mesh = ExtResource( 6 )
  42. material/0 = ExtResource( 7 )
  43. [node name="planet" type="Spatial" parent="."]
  44. script = ExtResource( 9 )
  45. [node name="planet" type="MeshInstance" parent="planet"]
  46. transform = Transform( 6, 0, 0, 0, 6, 0, 0, 0, 6, 15000, 0, 0 )
  47. mesh = ExtResource( 3 )
  48. material/0 = ExtResource( 1 )
  49. [node name="camera_mover" type="Spatial" parent="planet/planet"]
  50. script = ExtResource( 2 )
  51. [node name="helper" type="Spatial" parent="planet/planet/camera_mover"]
  52. [node name="camera" type="Spatial" parent="planet/planet/camera_mover/helper"]
  53. [node name="Control" type="Control" parent="."]
  54. margin_right = 40.0
  55. margin_bottom = 40.0
  56. __meta__ = {
  57. "_edit_use_anchors_": false
  58. }
  59. [node name="ItemList" type="ItemList" parent="Control"]
  60. margin_top = 0.663422
  61. margin_right = 102.0
  62. margin_bottom = 135.663
  63. items = [ "Sun", null, false, "Planet", null, false, "Planet 2", null, false ]
  64. __meta__ = {
  65. "_edit_use_anchors_": false
  66. }
  67. [connection signal="item_selected" from="Control/ItemList" to="." method="_on_ItemList_item_selected"]