274 lines
10 KiB
Plaintext
274 lines
10 KiB
Plaintext
[gd_scene format=3 uid="uid://cmuvmmp7xam4o"]
|
|
|
|
[ext_resource type="Script" uid="uid://d27xbipk650kf" path="res://core/daynight/environment_manager.gd" id="1_wecen"]
|
|
[ext_resource type="Script" uid="uid://butda6k2tli3o" path="res://core/environment_config.gd" id="2_h6hjk"]
|
|
[ext_resource type="Shader" uid="uid://7vwkfffa5vao" path="res://core/daynight/clouds_shadow.gdshader" id="2_i3hjl"]
|
|
[ext_resource type="Shader" uid="uid://cq4vlcj8cuvge" path="res://core/daynight/fog.gdshader" id="2_r4tfj"]
|
|
[ext_resource type="PackedScene" uid="uid://dyxvcf2l8ba5x" path="res://core/daynight/god_ray.tscn" id="5_411rw"]
|
|
[ext_resource type="Shader" uid="uid://bb1jjwe31fl7o" path="res://core/daynight/wind.gdshader" id="5_djqkg"]
|
|
[ext_resource type="Material" uid="uid://codq5gx71rj4o" path="res://core/daynight/environment_dust_material.tres" id="8_amaf0"]
|
|
[ext_resource type="Shader" uid="uid://bkn6eqgbn37jx" path="res://core/daynight/blur.gdshader" id="9_amaf0"]
|
|
[ext_resource type="Shader" uid="uid://b5wa82soyhsqm" path="res://core/daynight/environment_shadows.gdshader" id="10_tuauy"]
|
|
[ext_resource type="FastNoiseLite" uid="uid://c0mtwrkptjcuw" path="res://core/daynight/environment_shadows_noise_clouds.tres" id="11_yn8v8"]
|
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_ruhh7"]
|
|
render_priority = 0
|
|
shader = ExtResource("2_i3hjl")
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_r4tfj"]
|
|
transparency = 2
|
|
alpha_scissor_threshold = 0.0
|
|
alpha_antialiasing_mode = 0
|
|
disable_ambient_light = true
|
|
albedo_color = Color(0.44410604, 0.32877246, 0.26597014, 0.7541567)
|
|
billboard_mode = 3
|
|
particles_anim_h_frames = 1
|
|
particles_anim_v_frames = 1
|
|
particles_anim_loop = false
|
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_b5atu"]
|
|
render_priority = 0
|
|
shader = ExtResource("2_r4tfj")
|
|
shader_parameter/use_red_as_alpha = true
|
|
shader_parameter/fog_color = Color(0.8, 0.85, 0.9, 0.5)
|
|
shader_parameter/scroll_speed = Vector2(0.05, 0.01)
|
|
shader_parameter/texture_scale = Vector2(1, 1)
|
|
shader_parameter/edge_softness_y = 0.2
|
|
shader_parameter/edge_softness_x = 0.1
|
|
shader_parameter/night_intensity = 0.7953524793650795
|
|
shader_parameter/sun_color = Color(0.2841828, 0.2023238, 0.27953526, 1)
|
|
|
|
[sub_resource type="Resource" id="Resource_r4tfj"]
|
|
script = ExtResource("2_h6hjk")
|
|
material_fog = SubResource("ShaderMaterial_b5atu")
|
|
material_drops = SubResource("StandardMaterial3D_r4tfj")
|
|
material_clouds = SubResource("ShaderMaterial_ruhh7")
|
|
metadata/_custom_type_script = "uid://butda6k2tli3o"
|
|
|
|
[sub_resource type="Gradient" id="Gradient_i3hjl"]
|
|
offsets = PackedFloat32Array(0, 0.49019608, 1)
|
|
colors = PackedColorArray(0, 0, 0, 0, 1, 0.8980392, 0.3764706, 1, 1, 1, 1, 0)
|
|
|
|
[sub_resource type="GradientTexture1D" id="GradientTexture1D_djqkg"]
|
|
gradient = SubResource("Gradient_i3hjl")
|
|
|
|
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_i3hjl"]
|
|
emission_shape = 3
|
|
emission_box_extents = Vector3(20, 3, 20)
|
|
gravity = Vector3(0, 0.2, 0)
|
|
color_ramp = SubResource("GradientTexture1D_djqkg")
|
|
turbulence_enabled = true
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_djqkg"]
|
|
transparency = 1
|
|
vertex_color_use_as_albedo = true
|
|
emission_enabled = true
|
|
emission = Color(0.94509804, 0.827451, 0.09411765, 1)
|
|
emission_energy_multiplier = 16.0
|
|
billboard_mode = 3
|
|
particles_anim_h_frames = 1
|
|
particles_anim_v_frames = 1
|
|
particles_anim_loop = false
|
|
|
|
[sub_resource type="QuadMesh" id="QuadMesh_b5atu"]
|
|
material = SubResource("StandardMaterial3D_djqkg")
|
|
size = Vector2(0.1, 0.1)
|
|
|
|
[sub_resource type="Gradient" id="Gradient_djqkg"]
|
|
offsets = PackedFloat32Array(0, 0.491, 1)
|
|
colors = PackedColorArray(0, 0, 0, 0, 1, 1, 1, 0.7647059, 0, 0, 0, 0)
|
|
|
|
[sub_resource type="GradientTexture1D" id="GradientTexture1D_b5atu"]
|
|
gradient = SubResource("Gradient_djqkg")
|
|
|
|
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_ruhh7"]
|
|
lifetime_randomness = 0.5
|
|
emission_shape_scale = Vector3(5, 5, 5)
|
|
emission_shape = 3
|
|
emission_box_extents = Vector3(25, 5, 25)
|
|
direction = Vector3(0, 1, 0)
|
|
initial_velocity_min = 6.0
|
|
initial_velocity_max = 6.0
|
|
gravity = Vector3(0, 0, 0)
|
|
color_ramp = SubResource("GradientTexture1D_b5atu")
|
|
|
|
[sub_resource type="Curve" id="Curve_b5atu"]
|
|
_data = [Vector2(0.00440529, 0.49729878), 0.0, 0.0, 0, 0, Vector2(0.4977974, 0.988911), 0.0, 0.0, 0, 0, Vector2(1, 0.50284326), 0.0, 0.0, 0, 0]
|
|
point_count = 3
|
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_cer0u"]
|
|
render_priority = 0
|
|
shader = ExtResource("5_djqkg")
|
|
shader_parameter/wave_frequency = 1.0
|
|
shader_parameter/base_amplitude = 0.5
|
|
shader_parameter/secondary_ratio = 0.6
|
|
shader_parameter/time_scale_base = 3.0
|
|
|
|
[sub_resource type="TubeTrailMesh" id="TubeTrailMesh_vo82p"]
|
|
material = SubResource("ShaderMaterial_cer0u")
|
|
custom_aabb = AABB(20, 20, 20, 0, 0, 0)
|
|
radius = 0.06
|
|
radial_steps = 16
|
|
section_length = 2.0
|
|
curve = SubResource("Curve_b5atu")
|
|
|
|
[sub_resource type="Gradient" id="Gradient_b5atu"]
|
|
offsets = PackedFloat32Array(0, 0.1, 0.9, 1)
|
|
colors = PackedColorArray(1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0)
|
|
|
|
[sub_resource type="GradientTexture1D" id="GradientTexture1D_ruhh7"]
|
|
gradient = SubResource("Gradient_b5atu")
|
|
|
|
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_cer0u"]
|
|
particle_flag_align_y = true
|
|
emission_shape_scale = Vector3(50, 10, 50)
|
|
emission_shape = 3
|
|
emission_box_extents = Vector3(1, 1, 1)
|
|
direction = Vector3(0, -1, 0)
|
|
spread = 0.0
|
|
initial_velocity_min = 2.5
|
|
initial_velocity_max = 5.0
|
|
gravity = Vector3(0, -2, 0)
|
|
scale_max = 10.0
|
|
color_ramp = SubResource("GradientTexture1D_ruhh7")
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_b5atu"]
|
|
transparency = 1
|
|
emission_enabled = true
|
|
emission = Color(1, 1, 1, 1)
|
|
emission_energy_multiplier = 0.2
|
|
billboard_mode = 3
|
|
particles_anim_h_frames = 1
|
|
particles_anim_v_frames = 1
|
|
particles_anim_loop = false
|
|
|
|
[sub_resource type="QuadMesh" id="QuadMesh_ruhh7"]
|
|
material = SubResource("StandardMaterial3D_b5atu")
|
|
size = Vector2(0.2, 0.2)
|
|
|
|
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_b5atu"]
|
|
particle_flag_align_y = true
|
|
emission_shape_scale = Vector3(50, 10, 50)
|
|
emission_shape = 3
|
|
emission_box_extents = Vector3(1, 1, 1)
|
|
direction = Vector3(0, -1, 0)
|
|
spread = 0.0
|
|
initial_velocity_min = 10.0
|
|
initial_velocity_max = 25.0
|
|
gravity = Vector3(0, -9, 0)
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ruhh7"]
|
|
transparency = 2
|
|
alpha_scissor_threshold = 0.5
|
|
alpha_antialiasing_mode = 0
|
|
disable_ambient_light = true
|
|
albedo_color = Color(0.4745098, 0.69411767, 0.7607843, 0.7411765)
|
|
billboard_mode = 3
|
|
particles_anim_h_frames = 1
|
|
particles_anim_v_frames = 1
|
|
particles_anim_loop = false
|
|
|
|
[sub_resource type="QuadMesh" id="QuadMesh_cer0u"]
|
|
material = SubResource("StandardMaterial3D_ruhh7")
|
|
size = Vector2(0.05, 0.8)
|
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_kavln"]
|
|
shader = ExtResource("9_amaf0")
|
|
shader_parameter/blur_amount = 0.6000000285
|
|
|
|
[sub_resource type="QuadMesh" id="QuadMesh_sxgg7"]
|
|
size = Vector2(2, 2)
|
|
|
|
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_0fcg4"]
|
|
noise = ExtResource("11_yn8v8")
|
|
seamless = true
|
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_oqt1s"]
|
|
render_priority = 0
|
|
shader = ExtResource("10_tuauy")
|
|
shader_parameter/noise_texture = SubResource("NoiseTexture2D_0fcg4")
|
|
shader_parameter/cloud_scale = 0.0070000003325
|
|
shader_parameter/cloud_speed = 0.0030000001425
|
|
shader_parameter/direction = Vector2(0.5, 0.2)
|
|
shader_parameter/sun_angle = Vector2(0.5, 0.5)
|
|
shader_parameter/cloud_density = 0.400000019
|
|
shader_parameter/center_sharpness = 0.138000006555
|
|
shader_parameter/shadow_color = Color(0, 0, 0, 1)
|
|
shader_parameter/opacity_center = 0.90000004275
|
|
shader_parameter/opacity_edge = 0.6000000285
|
|
shader_parameter/fade_start = 150.0
|
|
shader_parameter/fade_end = 800.000035625
|
|
shader_parameter/height_fade_start = 10.0
|
|
shader_parameter/height_fade_end = 50.0
|
|
|
|
[node name="EnvironmentManager" type="Node3D" unique_id=1611939731 node_paths=PackedStringArray("particles_wind", "particles_snow", "particles_fireflies", "particles_rain", "environment_dust", "blur", "environment_shadows")]
|
|
script = ExtResource("1_wecen")
|
|
environment_config = SubResource("Resource_r4tfj")
|
|
particles_wind = NodePath("Particles_Wind")
|
|
particles_snow = NodePath("Particles_Snow")
|
|
particles_fireflies = NodePath("Particles_Fireflies")
|
|
particles_rain = NodePath("Particles_Rain")
|
|
godray = ExtResource("5_411rw")
|
|
environment_dust = NodePath("EnvironmentDust")
|
|
blur = NodePath("Blur")
|
|
environment_shadows = NodePath("EnvironmentCloudsShadows")
|
|
|
|
[node name="Particles_Fireflies" type="GPUParticles3D" parent="." unique_id=947538133]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0)
|
|
emitting = false
|
|
amount = 60
|
|
lifetime = 4.0
|
|
process_material = SubResource("ParticleProcessMaterial_i3hjl")
|
|
draw_pass_1 = SubResource("QuadMesh_b5atu")
|
|
|
|
[node name="Particles_Wind" type="GPUParticles3D" parent="." unique_id=1238214694]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 50, 0)
|
|
emitting = false
|
|
amount = 100
|
|
lifetime = 3.0
|
|
fixed_fps = 60
|
|
process_material = SubResource("ParticleProcessMaterial_ruhh7")
|
|
draw_pass_1 = SubResource("TubeTrailMesh_vo82p")
|
|
|
|
[node name="Particles_Snow" type="GPUParticles3D" parent="." unique_id=1877039876]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 30, 0)
|
|
extra_cull_margin = 16384.0
|
|
emitting = false
|
|
amount = 2000
|
|
lifetime = 4.0
|
|
process_material = SubResource("ParticleProcessMaterial_cer0u")
|
|
draw_pass_1 = SubResource("QuadMesh_ruhh7")
|
|
|
|
[node name="Particles_Rain" type="GPUParticles3D" parent="." unique_id=1543042897]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 30, 0)
|
|
cast_shadow = 0
|
|
extra_cull_margin = 16384.0
|
|
emitting = false
|
|
amount = 5000
|
|
lifetime = 1.5
|
|
process_material = SubResource("ParticleProcessMaterial_b5atu")
|
|
draw_pass_1 = SubResource("QuadMesh_cer0u")
|
|
|
|
[node name="EnvironmentDust" type="ColorRect" parent="." unique_id=1245348005]
|
|
material = ExtResource("8_amaf0")
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 2
|
|
|
|
[node name="Blur" type="ColorRect" parent="." unique_id=809010331]
|
|
material = SubResource("ShaderMaterial_kavln")
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 2
|
|
|
|
[node name="EnvironmentCloudsShadows" type="MeshInstance3D" parent="." unique_id=159549433]
|
|
extra_cull_margin = 16384.0
|
|
mesh = SubResource("QuadMesh_sxgg7")
|
|
surface_material_override/0 = SubResource("ShaderMaterial_oqt1s")
|