fix shaders
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
[ext_resource type="PackedScene" uid="uid://0kgjaqijaqku" path="res://docs/museums/biome_generator/rails.tscn" id="8_mb5yv"]
|
||||
[ext_resource type="PackedScene" uid="uid://dn1btv0e0ses7" path="res://core/fireworks.tscn" id="8_xtogr"]
|
||||
[ext_resource type="PackedScene" uid="uid://cu2chsjh8wuvp" path="res://tgcc/chunk/countryside/scene/chunk_country_straight_02.tscn" id="9_sw7bt"]
|
||||
[ext_resource type="PackedScene" uid="uid://c73yk6858dmwn" path="res://tgcc/chunk/countryside/scene/chunk_country_cross_4_01.tscn" id="10_c7mkj"]
|
||||
[ext_resource type="PackedScene" uid="uid://cmuvmmp7xam4o" path="res://core/daynight/environment_management.tscn" id="16_c7mkj"]
|
||||
[ext_resource type="AudioStream" uid="uid://dvabvoqyya0g5" path="res://core/daynight/sounds/thunder_3.mp3" id="17_sw7bt"]
|
||||
[ext_resource type="AudioStream" uid="uid://creenugno7hm" path="res://core/daynight/sounds/thunder_4.mp3" id="18_2l6dd"]
|
||||
@@ -100,7 +101,7 @@ compositor_effects = Array[CompositorEffect]([SubResource("CompositorEffect_q52t
|
||||
[sub_resource type="Resource" id="Resource_3qrd0"]
|
||||
script = ExtResource("5_2wjys")
|
||||
name = "countryside"
|
||||
available_chunks = Array[PackedScene]([ExtResource("6_21usy"), ExtResource("7_qe84w"), ExtResource("9_sw7bt")])
|
||||
available_chunks = Array[PackedScene]([ExtResource("6_21usy"), ExtResource("7_qe84w"), ExtResource("9_sw7bt"), ExtResource("10_c7mkj")])
|
||||
metadata/_custom_type_script = "uid://wv6kcqkibium"
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_pypsn"]
|
||||
@@ -178,10 +179,10 @@ script = ExtResource("23_27ile")
|
||||
|
||||
[node name="Snow" type="CheckButton" parent="Control" unique_id=454394427]
|
||||
layout_mode = 0
|
||||
offset_left = 21.0
|
||||
offset_top = 13.0
|
||||
offset_right = 109.0
|
||||
offset_bottom = 44.0
|
||||
offset_left = 8.0
|
||||
offset_top = 173.0
|
||||
offset_right = 98.0
|
||||
offset_bottom = 204.0
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_focus_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_pressed_color = Color(1, 1, 1, 1)
|
||||
@@ -192,10 +193,10 @@ text = "Snow"
|
||||
|
||||
[node name="Rain" type="CheckButton" parent="Control" unique_id=837805524]
|
||||
layout_mode = 0
|
||||
offset_left = 21.0
|
||||
offset_top = 41.0
|
||||
offset_right = 109.0
|
||||
offset_bottom = 72.0
|
||||
offset_left = 8.0
|
||||
offset_top = 201.0
|
||||
offset_right = 96.0
|
||||
offset_bottom = 232.0
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_focus_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_pressed_color = Color(1, 1, 1, 1)
|
||||
@@ -206,10 +207,10 @@ text = "Rain"
|
||||
|
||||
[node name="Wind" type="CheckButton" parent="Control" unique_id=1013004982]
|
||||
layout_mode = 0
|
||||
offset_left = 21.0
|
||||
offset_top = 91.0
|
||||
offset_right = 109.0
|
||||
offset_bottom = 122.0
|
||||
offset_left = 8.0
|
||||
offset_top = 231.0
|
||||
offset_right = 96.0
|
||||
offset_bottom = 262.0
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_focus_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_pressed_color = Color(1, 1, 1, 1)
|
||||
@@ -220,19 +221,19 @@ text = "Wind"
|
||||
|
||||
[node name="WindSlider" type="HSlider" parent="Control" unique_id=28050098]
|
||||
layout_mode = 0
|
||||
offset_left = 26.0
|
||||
offset_top = 124.0
|
||||
offset_right = 205.0
|
||||
offset_bottom = 140.0
|
||||
offset_left = 103.0
|
||||
offset_top = 238.0
|
||||
offset_right = 187.0
|
||||
offset_bottom = 254.0
|
||||
max_value = 1.0
|
||||
step = 0.01
|
||||
|
||||
[node name="Fireflies" type="CheckButton" parent="Control" unique_id=1046228444]
|
||||
layout_mode = 0
|
||||
offset_left = 21.0
|
||||
offset_top = 169.0
|
||||
offset_right = 130.0
|
||||
offset_bottom = 200.0
|
||||
offset_left = 8.0
|
||||
offset_top = 259.0
|
||||
offset_right = 117.0
|
||||
offset_bottom = 290.0
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_focus_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_pressed_color = Color(1, 1, 1, 1)
|
||||
@@ -243,10 +244,10 @@ text = "Fireflies"
|
||||
|
||||
[node name="Storm" type="CheckButton" parent="Control" unique_id=1792625744]
|
||||
layout_mode = 0
|
||||
offset_left = 21.0
|
||||
offset_top = 66.0
|
||||
offset_right = 117.0
|
||||
offset_bottom = 97.0
|
||||
offset_left = 98.0
|
||||
offset_top = 201.0
|
||||
offset_right = 194.0
|
||||
offset_bottom = 232.0
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_focus_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_pressed_color = Color(1, 1, 1, 1)
|
||||
@@ -257,73 +258,88 @@ text = "Storm"
|
||||
|
||||
[node name="DayTimeLabel" type="Label" parent="Control" unique_id=1124935856]
|
||||
layout_mode = 0
|
||||
offset_left = 26.0
|
||||
offset_top = 150.0
|
||||
offset_right = 360.0
|
||||
offset_bottom = 173.0
|
||||
offset_left = 13.0
|
||||
offset_top = 15.0
|
||||
offset_right = 347.0
|
||||
offset_bottom = 38.0
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_outline_color = Color(1, 1, 1, 1)
|
||||
text = "Time 00:00"
|
||||
|
||||
[node name="DayTimeSlider" type="HSlider" parent="Control" unique_id=1865778345]
|
||||
layout_mode = 0
|
||||
offset_left = 26.0
|
||||
offset_top = 228.0
|
||||
offset_right = 205.0
|
||||
offset_bottom = 244.0
|
||||
offset_left = 13.0
|
||||
offset_top = 40.0
|
||||
offset_right = 138.0
|
||||
offset_bottom = 56.0
|
||||
max_value = 1.0
|
||||
step = 0.01
|
||||
|
||||
[node name="DayTimeOptions" type="OptionButton" parent="Control" unique_id=928646468]
|
||||
layout_mode = 0
|
||||
offset_left = 13.0
|
||||
offset_top = 59.0
|
||||
offset_right = 124.0
|
||||
offset_bottom = 90.0
|
||||
selected = 1
|
||||
item_count = 4
|
||||
popup/item_0/text = "Sunrise"
|
||||
popup/item_0/id = 1
|
||||
popup/item_1/text = "Day"
|
||||
popup/item_1/id = 2
|
||||
popup/item_2/text = "Sunset"
|
||||
popup/item_2/id = 3
|
||||
popup/item_3/text = "Night"
|
||||
popup/item_3/id = 4
|
||||
|
||||
[node name="Dust" type="CheckButton" parent="Control" unique_id=760281365]
|
||||
layout_mode = 0
|
||||
offset_left = 21.0
|
||||
offset_top = 304.0
|
||||
offset_right = 150.0
|
||||
offset_bottom = 335.0
|
||||
offset_left = 8.0
|
||||
offset_top = 91.0
|
||||
offset_right = 137.0
|
||||
offset_bottom = 122.0
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_focus_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_pressed_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_hover_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_hover_pressed_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_outline_color = Color(1, 1, 1, 1)
|
||||
button_pressed = true
|
||||
text = "Dust"
|
||||
|
||||
[node name="Blur" type="CheckButton" parent="Control" unique_id=1083708100]
|
||||
layout_mode = 0
|
||||
offset_left = 21.0
|
||||
offset_top = 332.0
|
||||
offset_right = 150.0
|
||||
offset_bottom = 363.0
|
||||
offset_left = 8.0
|
||||
offset_top = 118.0
|
||||
offset_right = 137.0
|
||||
offset_bottom = 149.0
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_focus_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_pressed_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_hover_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_hover_pressed_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_outline_color = Color(1, 1, 1, 1)
|
||||
button_pressed = true
|
||||
text = "Blur"
|
||||
|
||||
[node name="Pause" type="CheckButton" parent="Control" unique_id=1587043871]
|
||||
layout_mode = 0
|
||||
offset_left = 21.0
|
||||
offset_top = 243.0
|
||||
offset_right = 158.0
|
||||
offset_bottom = 274.0
|
||||
offset_left = 143.0
|
||||
offset_top = 31.0
|
||||
offset_right = 238.0
|
||||
offset_bottom = 62.0
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_focus_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_pressed_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_hover_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_hover_pressed_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_outline_color = Color(1, 1, 1, 1)
|
||||
text = "Pause Time"
|
||||
text = "Pause"
|
||||
|
||||
[node name="Shadows" type="CheckButton" parent="Control" unique_id=283354318]
|
||||
layout_mode = 0
|
||||
offset_left = 21.0
|
||||
offset_top = 356.0
|
||||
offset_right = 150.0
|
||||
offset_bottom = 387.0
|
||||
offset_left = 8.0
|
||||
offset_top = 145.0
|
||||
offset_right = 137.0
|
||||
offset_bottom = 176.0
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_focus_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_pressed_color = Color(1, 1, 1, 1)
|
||||
@@ -333,21 +349,6 @@ theme_override_colors/font_outline_color = Color(1, 1, 1, 1)
|
||||
button_pressed = true
|
||||
text = "Shadows"
|
||||
|
||||
[node name="Guide" type="Label" parent="Control" unique_id=2121474959]
|
||||
layout_mode = 0
|
||||
offset_left = 26.0
|
||||
offset_top = 401.0
|
||||
offset_right = 339.0
|
||||
offset_bottom = 606.0
|
||||
text = "R-> Reset isometric camera
|
||||
C-> Toggle cinematic mode
|
||||
Z-> soft zoom
|
||||
Manual controls (1-5)
|
||||
T -> go to next stop
|
||||
F -> fireworks
|
||||
BACKSPACE -> stop train
|
||||
ARROW UP/DOWN -> change train speed"
|
||||
|
||||
[connection signal="toggled" from="Control/Snow" to="Control" method="_on_snow_toggled"]
|
||||
[connection signal="toggled" from="Control/Rain" to="Control" method="_on_rain_toggled"]
|
||||
[connection signal="toggled" from="Control/Wind" to="Control" method="_on_wind_toggled"]
|
||||
@@ -355,6 +356,7 @@ ARROW UP/DOWN -> change train speed"
|
||||
[connection signal="toggled" from="Control/Fireflies" to="Control" method="_on_fireflies_toggled"]
|
||||
[connection signal="toggled" from="Control/Storm" to="Control" method="_on_storm_toggled"]
|
||||
[connection signal="value_changed" from="Control/DayTimeSlider" to="Control" method="_on_day_time_slider_value_changed"]
|
||||
[connection signal="item_selected" from="Control/DayTimeOptions" to="Control" method="_on_option_button_item_selected"]
|
||||
[connection signal="toggled" from="Control/Dust" to="Control" method="_on_dust_toggled"]
|
||||
[connection signal="toggled" from="Control/Blur" to="Control" method="_on_blur_toggled"]
|
||||
[connection signal="toggled" from="Control/Pause" to="Control" method="_on_pause_toggled"]
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
extends Control
|
||||
|
||||
@onready var day_night: EnvironmentManagerRoot = get_node_or_null("../DayNight") as EnvironmentManagerRoot
|
||||
@onready var day_night: EnvironmentManagerRoot = $"../DayNight"
|
||||
@onready var day_time_label: Label = $DayTimeLabel
|
||||
@onready var day_time_slider: HSlider = $DayTimeSlider
|
||||
@onready var wind_slider: HSlider = get_node_or_null("WindSlider") as HSlider
|
||||
|
||||
@onready var wind_slider: HSlider = $WindSlider
|
||||
@onready var day_time_option: OptionButton = $DayTimeOptions
|
||||
|
||||
func _ready() -> void:
|
||||
UIEvents.day_time_changed.connect(_on_day_time_changed)
|
||||
UIEvents.day_time_option_changed.connect(_on_day_time_option_changed)
|
||||
if day_night != null and day_night.environment_config != null and wind_slider != null:
|
||||
wind_slider.set_value_no_signal(day_night.environment_config.wind_strength)
|
||||
_sync_day_time_ui()
|
||||
@@ -74,3 +75,14 @@ func _sync_day_time_ui() -> void:
|
||||
day_night_controller.current_time,
|
||||
day_night_controller.get_time_string()
|
||||
)
|
||||
_on_day_time_option_changed(
|
||||
day_night_controller.get_time_option_index(day_night_controller.current_time)
|
||||
)
|
||||
|
||||
func _on_day_time_option_changed(index: int) -> void:
|
||||
if day_time_option == null:
|
||||
return
|
||||
day_time_option.select(index)
|
||||
|
||||
func _on_option_button_item_selected(index: int) -> void:
|
||||
UIEvents.time_option_item_changed.emit(index)
|
||||
|
||||
Reference in New Issue
Block a user