main.tscn 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. [gd_scene load_steps=7 format=3 uid="uid://c7nfvt1chslyh"]
  2. [ext_resource type="Script" path="res://main.gd" id="1_yvrvl"]
  3. [ext_resource type="Texture2D" uid="uid://d051ugdf65it1" path="res://assets/polyhaven/industrial_sunset_puresky_2k.hdr" id="2_g2q6b"]
  4. [ext_resource type="PackedScene" uid="uid://b2a5bjsxw63wr" path="res://water_plane/water_plane.tscn" id="2_k1nfp"]
  5. [sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_obhcg"]
  6. panorama = ExtResource("2_g2q6b")
  7. [sub_resource type="Sky" id="Sky_s1sgk"]
  8. sky_material = SubResource("PanoramaSkyMaterial_obhcg")
  9. [sub_resource type="Environment" id="Environment_5dv8s"]
  10. background_mode = 2
  11. sky = SubResource("Sky_s1sgk")
  12. tonemap_mode = 2
  13. tonemap_white = 4.56
  14. [node name="Main" type="Node3D"]
  15. script = ExtResource("1_yvrvl")
  16. [node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
  17. transform = Transform3D(0.5, -0.75, 0.433013, 2.78059e-08, 0.5, 0.866026, -0.866025, -0.433013, 0.25, 0, 1, 0)
  18. shadow_enabled = true
  19. [node name="WorldEnvironment" type="WorldEnvironment" parent="."]
  20. environment = SubResource("Environment_5dv8s")
  21. [node name="WaterPlane" parent="." instance=ExtResource("2_k1nfp")]
  22. [node name="Camera3D" type="Camera3D" parent="."]
  23. transform = Transform3D(0.900266, -0.142464, 0.41137, -0.113954, 0.834877, 0.538512, -0.420162, -0.531681, 0.735377, 1.55343, 1.1434, 2.431)
  24. [node name="Container" type="VBoxContainer" parent="."]
  25. offset_right = 40.0
  26. offset_bottom = 40.0
  27. [node name="Rotate" type="CheckBox" parent="Container"]
  28. layout_mode = 2
  29. theme_override_colors/font_color = Color(0, 0, 0, 1)
  30. text = "Rotate"
  31. [node name="RainSize" type="HBoxContainer" parent="Container"]
  32. layout_mode = 2
  33. [node name="HSlider" type="HSlider" parent="Container/RainSize"]
  34. custom_minimum_size = Vector2(250, 0)
  35. layout_mode = 2
  36. min_value = 1.0
  37. max_value = 10.0
  38. step = 0.1
  39. value = 1.0
  40. [node name="Label" type="Label" parent="Container/RainSize"]
  41. layout_mode = 2
  42. theme_override_colors/font_color = Color(0, 0, 0, 1)
  43. text = "Rain size"
  44. [node name="MouseSize" type="HBoxContainer" parent="Container"]
  45. layout_mode = 2
  46. [node name="HSlider" type="HSlider" parent="Container/MouseSize"]
  47. custom_minimum_size = Vector2(250, 0)
  48. layout_mode = 2
  49. min_value = 1.0
  50. max_value = 10.0
  51. step = 0.1
  52. value = 1.1
  53. [node name="Label" type="Label" parent="Container/MouseSize"]
  54. layout_mode = 2
  55. theme_override_colors/font_color = Color(0, 0, 0, 1)
  56. text = "Mouse size"
  57. [connection signal="value_changed" from="Container/RainSize/HSlider" to="." method="_on_rain_size_changed"]
  58. [connection signal="value_changed" from="Container/MouseSize/HSlider" to="." method="_on_mouse_size_changed"]