80 lines
2.7 KiB
Plaintext
80 lines
2.7 KiB
Plaintext
[gd_scene load_steps=9 format=3 uid="uid://cwy8iv8nlwqrc"]
|
|
|
|
[ext_resource type="Script" uid="uid://dl780dimuvcms" path="res://scripts/realtime_day_night_cycle.gd" id="1_idjmm"]
|
|
[ext_resource type="Texture2D" uid="uid://buq3n4avvlts0" path="res://assets/Textures/kloppenheim_02_puresky_4k.exr" id="2_xp6wm"]
|
|
|
|
[sub_resource type="Gradient" id="Gradient_idjmm"]
|
|
offsets = PackedFloat32Array(0.00636943, 0.159236, 0.828025, 1)
|
|
colors = PackedColorArray(0.93, 0.7006, 0.2418, 1, 0.97, 0.97, 0.97, 1, 0.98, 0.98, 0.98, 1, 1, 0.666667, 0, 1)
|
|
|
|
[sub_resource type="GradientTexture1D" id="GradientTexture1D_xp6wm"]
|
|
gradient = SubResource("Gradient_idjmm")
|
|
width = 24
|
|
|
|
[sub_resource type="Curve" id="Curve_idjmm"]
|
|
_limits = [0.0, 1.0, 0.0, 24.0]
|
|
_data = [Vector2(5, 0), 0.0, 0.44, 0, 0, Vector2(12, 1), 0.0, 0.0, 0, 0, Vector2(20, 0), -0.37, 0.0, 0, 0]
|
|
point_count = 3
|
|
|
|
[sub_resource type="PhysicalSkyMaterial" id="PhysicalSkyMaterial_xp6wm"]
|
|
mie_coefficient = 0.001
|
|
ground_color = Color(0.497458, 0.687416, 0.836211, 1)
|
|
energy_multiplier = 3.0
|
|
night_sky = ExtResource("2_xp6wm")
|
|
|
|
[sub_resource type="Sky" id="Sky_6g0ku"]
|
|
sky_material = SubResource("PhysicalSkyMaterial_xp6wm")
|
|
process_mode = 3
|
|
|
|
[sub_resource type="Environment" id="Environment_ml2st"]
|
|
background_mode = 2
|
|
sky = SubResource("Sky_6g0ku")
|
|
ambient_light_source = 3
|
|
ambient_light_color = Color(1, 1, 1, 1)
|
|
ambient_light_energy = 2.0
|
|
reflected_light_source = 2
|
|
ssr_enabled = true
|
|
ssao_enabled = true
|
|
ssil_enabled = true
|
|
sdfgi_enabled = true
|
|
sdfgi_energy = 2.0
|
|
glow_enabled = true
|
|
glow_intensity = 2.0
|
|
fog_mode = 1
|
|
fog_density = 0.1
|
|
volumetric_fog_enabled = true
|
|
volumetric_fog_density = 0.001
|
|
volumetric_fog_albedo = Color(0.6384, 0.74256, 0.84, 1)
|
|
volumetric_fog_length = 3000.0
|
|
volumetric_fog_ambient_inject = 1.0
|
|
volumetric_fog_sky_affect = 0.25
|
|
adjustment_brightness = 1.2
|
|
|
|
[node name="Realtime Day Night Cycle" type="Node3D"]
|
|
script = ExtResource("1_idjmm")
|
|
sun_color = SubResource("GradientTexture1D_xp6wm")
|
|
realtime = true
|
|
set_time = 20.0
|
|
sun_energy_over_time = SubResource("Curve_idjmm")
|
|
|
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
|
environment = SubResource("Environment_ml2st")
|
|
|
|
[node name="Sun" type="DirectionalLight3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1.19249e-08, 1, 0, -1, 1.19249e-08, 0, 0, 0)
|
|
light_energy = 2.0
|
|
shadow_enabled = true
|
|
|
|
[node name="Moon" type="DirectionalLight3D" parent="Sun"]
|
|
transform = Transform3D(1, 0, 0, 0, -1, -8.74228e-08, 0, 8.74228e-08, -1, 0, 0, 0)
|
|
light_color = Color(0.5874, 0.804263, 0.89, 1)
|
|
light_energy = 0.0
|
|
shadow_enabled = true
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
wait_time = 60.0
|
|
autostart = true
|
|
ignore_time_scale = true
|
|
|
|
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|