|
@@ -1,9 +1,11 @@
|
|
|
-[gd_scene load_steps=13 format=3 uid="uid://dbm1npua7fq50"]
|
|
|
+[gd_scene load_steps=17 format=3 uid="uid://dbm1npua7fq50"]
|
|
|
|
|
|
[ext_resource type="PackedScene" uid="uid://djbrxyh5s8j2o" path="res://zdm2.glb" id="1"]
|
|
|
[ext_resource type="PackedScene" uid="uid://c2lbhsefub1o5" path="res://cube.glb" id="3"]
|
|
|
[ext_resource type="VoxelGIData" uid="uid://duykbpl6evu0r" path="res://test_VoxelGIData.res" id="3_1netx"]
|
|
|
+[ext_resource type="LightmapGIData" uid="uid://ct72rg4fnnes8" path="res://zdm2_all.lmbake" id="4_7vqwx"]
|
|
|
[ext_resource type="Script" path="res://test.gd" id="5"]
|
|
|
+[ext_resource type="LightmapGIData" uid="uid://b78viqmkq8djh" path="res://zdm2_indirect.lmbake" id="5_14bmd"]
|
|
|
[ext_resource type="Script" path="res://camera.gd" id="6"]
|
|
|
|
|
|
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_30v8t"]
|
|
@@ -20,6 +22,7 @@ background_mode = 2
|
|
|
sky = SubResource("Sky_4q314")
|
|
|
tonemap_mode = 3
|
|
|
tonemap_white = 6.0
|
|
|
+ssao_intensity = 1.0
|
|
|
sdfgi_cascades = 3
|
|
|
sdfgi_min_cell_size = 0.25
|
|
|
sdfgi_cascade0_distance = 16.0
|
|
@@ -33,7 +36,18 @@ emission_energy_multiplier = 2.0
|
|
|
|
|
|
[sub_resource type="BoxMesh" id="8"]
|
|
|
|
|
|
+[sub_resource type="Gradient" id="Gradient_3s4nj"]
|
|
|
+colors = PackedColorArray(0, 0, 0, 1, 0, 0, 0, 0)
|
|
|
+
|
|
|
+[sub_resource type="GradientTexture2D" id="GradientTexture2D_uu8pf"]
|
|
|
+gradient = SubResource("Gradient_3s4nj")
|
|
|
+fill = 1
|
|
|
+fill_from = Vector2(0.5, 0.5)
|
|
|
+fill_to = Vector2(0.5, 0.01)
|
|
|
+
|
|
|
[sub_resource type="SphereMesh" id="2"]
|
|
|
+radius = 1.0
|
|
|
+height = 2.0
|
|
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_7doxp"]
|
|
|
albedo_color = Color(0.811765, 1, 0.764706, 1)
|
|
@@ -46,27 +60,46 @@ script = ExtResource("5")
|
|
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
|
|
environment = SubResource("Environment_bau0c")
|
|
|
|
|
|
-[node name="Zdm2" parent="." instance=ExtResource("1")]
|
|
|
+[node name="Zdm2NoLightmap" parent="." instance=ExtResource("1")]
|
|
|
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2)
|
|
|
+
|
|
|
+[node name="Zdm2LightmapAll" parent="." instance=ExtResource("1")]
|
|
|
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2)
|
|
|
+visible = false
|
|
|
+
|
|
|
+[node name="Zdm2LightmapIndirect" parent="." instance=ExtResource("1")]
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2)
|
|
|
+visible = false
|
|
|
|
|
|
[node name="VoxelGI" type="VoxelGI" parent="."]
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5, 6, 2.5)
|
|
|
extents = Vector3(39, 18.5, 30)
|
|
|
data = ExtResource("3_1netx")
|
|
|
|
|
|
+[node name="LightmapGIAll" type="LightmapGI" parent="."]
|
|
|
+visible = false
|
|
|
+quality = 3
|
|
|
+light_data = ExtResource("4_7vqwx")
|
|
|
+
|
|
|
+[node name="LightmapGIIndirect" type="LightmapGI" parent="."]
|
|
|
+visible = false
|
|
|
+quality = 3
|
|
|
+light_data = ExtResource("5_14bmd")
|
|
|
+
|
|
|
[node name="Sun" type="DirectionalLight3D" parent="."]
|
|
|
transform = Transform3D(0.889832, -0.251497, 0.380722, 0, 0.834387, 0.551179, -0.456289, -0.490456, 0.742464, 4.47302, 6.47568, 8.72305)
|
|
|
shadow_enabled = true
|
|
|
-shadow_blur = 1.5
|
|
|
+shadow_bias = 0.04
|
|
|
+shadow_blur = 2.0
|
|
|
directional_shadow_fade_start = 1.0
|
|
|
-directional_shadow_max_distance = 85.0
|
|
|
+directional_shadow_max_distance = 75.0
|
|
|
|
|
|
[node name="GrateOmniLight" type="OmniLight3D" parent="."]
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 11.9461, -1.33084, -5.52646)
|
|
|
light_color = Color(1, 0.905882, 0.470588, 1)
|
|
|
shadow_enabled = true
|
|
|
shadow_bias = 0.03
|
|
|
-shadow_blur = 1.5
|
|
|
+shadow_blur = 2.0
|
|
|
omni_range = 10.0
|
|
|
omni_attenuation = 2.0
|
|
|
|
|
@@ -76,7 +109,7 @@ light_color = Color(0.984314, 0.552941, 1, 1)
|
|
|
light_energy = 15.0
|
|
|
shadow_enabled = true
|
|
|
shadow_bias = 0.03
|
|
|
-shadow_blur = 1.5
|
|
|
+shadow_blur = 2.0
|
|
|
omni_range = 10.0
|
|
|
omni_attenuation = 2.0
|
|
|
|
|
@@ -100,8 +133,18 @@ script = ExtResource("6")
|
|
|
|
|
|
[node name="Box" type="MeshInstance3D" parent="Camera"]
|
|
|
transform = Transform3D(0.999999, -5.12227e-09, 9.68575e-08, 2.79397e-09, 0.999999, 8.9407e-08, 7.45058e-09, -1.11759e-07, 0.999999, -1.4, -0.999998, -3.99998)
|
|
|
+layers = 2
|
|
|
mesh = SubResource("8")
|
|
|
|
|
|
+[node name="BlobShadow" type="Decal" parent="Camera/Box"]
|
|
|
+transform = Transform3D(-0.997524, -0.00613033, -0.0700699, -0.00719589, 0.999863, 0.0149653, 0.0699686, 0.015432, -0.997431, 0.0499506, -0.507917, -0.035697)
|
|
|
+extents = Vector3(1.25, 2, 1.25)
|
|
|
+texture_albedo = SubResource("GradientTexture2D_uu8pf")
|
|
|
+albedo_mix = 0.9
|
|
|
+upper_fade = 1.0
|
|
|
+lower_fade = 1.0
|
|
|
+cull_mask = 1048573
|
|
|
+
|
|
|
[node name="ReflectiveSphere" type="MeshInstance3D" parent="Camera"]
|
|
|
transform = Transform3D(-0.997523, -8.41886e-09, -0.0703376, -0.00719589, 0.994753, 0.102052, 0.0699685, 0.102305, -0.992289, 0.16733, -1.22931, -3.81225)
|
|
|
layers = 2
|
|
@@ -111,18 +154,27 @@ surface_material_override/0 = SubResource("StandardMaterial3D_7doxp")
|
|
|
[node name="ReflectionProbe" type="ReflectionProbe" parent="Camera/ReflectiveSphere"]
|
|
|
transform = Transform3D(1, -8.38189e-09, -8.9407e-08, 5.58791e-09, 1, -5.21541e-07, 4.47035e-08, 1.11759e-07, 1, 0, 0, 0)
|
|
|
max_distance = 50.0
|
|
|
+extents = Vector3(11, 11, 11)
|
|
|
box_projection = true
|
|
|
enable_shadows = true
|
|
|
ambient_mode = 0
|
|
|
|
|
|
+[node name="BlobShadow" type="Decal" parent="Camera/ReflectiveSphere"]
|
|
|
+transform = Transform3D(1, -1.37668e-14, 0, 1.33227e-15, 1, 1.42109e-14, 0, 0, 1, 0, -1, -1.90735e-06)
|
|
|
+extents = Vector3(1.25, 2, 1.25)
|
|
|
+texture_albedo = SubResource("GradientTexture2D_uu8pf")
|
|
|
+albedo_mix = 0.9
|
|
|
+upper_fade = 1.0
|
|
|
+lower_fade = 1.0
|
|
|
+cull_mask = 1048573
|
|
|
+
|
|
|
[node name="GIMode" type="Label" parent="."]
|
|
|
offset_left = 16.0
|
|
|
offset_top = 16.0
|
|
|
offset_right = 263.0
|
|
|
offset_bottom = 42.0
|
|
|
-theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
|
|
|
-theme_override_constants/shadow_offset_x = 1
|
|
|
-theme_override_constants/shadow_offset_y = 1
|
|
|
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
|
|
+theme_override_constants/outline_size = 4
|
|
|
text = "Global illumination: None (Fastest)"
|
|
|
|
|
|
[node name="ReflectionProbeMode" type="Label" parent="."]
|
|
@@ -130,9 +182,8 @@ offset_left = 16.0
|
|
|
offset_top = 48.0
|
|
|
offset_right = 148.0
|
|
|
offset_bottom = 74.0
|
|
|
-theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
|
|
|
-theme_override_constants/shadow_offset_x = 1
|
|
|
-theme_override_constants/shadow_offset_y = 1
|
|
|
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
|
|
+theme_override_constants/outline_size = 4
|
|
|
text = "Reflection probe: Disabled - Using environment, VoxelGI or SDFGI reflections (Fast)"
|
|
|
|
|
|
[node name="SSILMode" type="Label" parent="."]
|
|
@@ -140,9 +191,8 @@ offset_left = 16.0
|
|
|
offset_top = 80.0
|
|
|
offset_right = 365.0
|
|
|
offset_bottom = 106.0
|
|
|
-theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
|
|
|
-theme_override_constants/shadow_offset_x = 1
|
|
|
-theme_override_constants/shadow_offset_y = 1
|
|
|
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
|
|
+theme_override_constants/outline_size = 4
|
|
|
text = "Screen-space lighting effects: Disabled (Fast)"
|
|
|
|
|
|
[node name="Label" type="Label" parent="."]
|
|
@@ -153,11 +203,10 @@ offset_left = 16.0
|
|
|
offset_top = -120.0
|
|
|
offset_right = 537.0
|
|
|
offset_bottom = -16.0
|
|
|
-theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
|
|
|
-theme_override_constants/shadow_offset_x = 1
|
|
|
-theme_override_constants/shadow_offset_y = 1
|
|
|
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
|
|
+theme_override_constants/outline_size = 4
|
|
|
text = "Space: Cycle between GI modes
|
|
|
-R: Toggle reflection probe
|
|
|
+R: Cycle between reflection probe modes
|
|
|
F: Cycle between screen-space lighting effect modes
|
|
|
Escape or F10: Toggle mouse capture"
|
|
|
|