test.tscn 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. [gd_scene load_steps=17 format=3 uid="uid://dbm1npua7fq50"]
  2. [ext_resource type="PackedScene" uid="uid://djbrxyh5s8j2o" path="res://zdm2.glb" id="1"]
  3. [ext_resource type="PackedScene" uid="uid://c2lbhsefub1o5" path="res://cube.glb" id="3"]
  4. [ext_resource type="VoxelGIData" uid="uid://duykbpl6evu0r" path="res://test_VoxelGIData.res" id="3_1netx"]
  5. [ext_resource type="LightmapGIData" uid="uid://ct72rg4fnnes8" path="res://zdm2_all.lmbake" id="4_7vqwx"]
  6. [ext_resource type="Script" path="res://test.gd" id="5"]
  7. [ext_resource type="LightmapGIData" uid="uid://b78viqmkq8djh" path="res://zdm2_indirect.lmbake" id="5_14bmd"]
  8. [ext_resource type="Script" path="res://camera.gd" id="6"]
  9. [sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_30v8t"]
  10. sky_top_color = Color(0.568627, 0.698039, 0.807843, 1)
  11. sky_horizon_color = Color(0.672549, 0.704902, 0.734314, 1)
  12. ground_bottom_color = Color(0.121569, 0.121569, 0.129412, 1)
  13. ground_horizon_color = Color(0.672549, 0.704902, 0.734314, 1)
  14. [sub_resource type="Sky" id="Sky_4q314"]
  15. sky_material = SubResource("ProceduralSkyMaterial_30v8t")
  16. [sub_resource type="Environment" id="Environment_bau0c"]
  17. background_mode = 2
  18. sky = SubResource("Sky_4q314")
  19. tonemap_mode = 3
  20. tonemap_white = 6.0
  21. ssao_intensity = 1.0
  22. sdfgi_cascades = 3
  23. sdfgi_min_cell_size = 0.25
  24. sdfgi_cascade0_distance = 16.0
  25. sdfgi_max_distance = 128.0
  26. sdfgi_y_scale = 0
  27. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_1n5k1"]
  28. emission_enabled = true
  29. emission = Color(1, 1, 0, 1)
  30. emission_energy_multiplier = 2.0
  31. [sub_resource type="BoxMesh" id="8"]
  32. [sub_resource type="Gradient" id="Gradient_3s4nj"]
  33. colors = PackedColorArray(0, 0, 0, 1, 0, 0, 0, 0)
  34. [sub_resource type="GradientTexture2D" id="GradientTexture2D_uu8pf"]
  35. gradient = SubResource("Gradient_3s4nj")
  36. fill = 1
  37. fill_from = Vector2(0.5, 0.5)
  38. fill_to = Vector2(0.5, 0.01)
  39. [sub_resource type="SphereMesh" id="2"]
  40. radius = 1.0
  41. height = 2.0
  42. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_7doxp"]
  43. albedo_color = Color(0.811765, 1, 0.764706, 1)
  44. metallic = 1.0
  45. roughness = 0.0
  46. [node name="Test" type="Node3D"]
  47. script = ExtResource("5")
  48. [node name="WorldEnvironment" type="WorldEnvironment" parent="."]
  49. environment = SubResource("Environment_bau0c")
  50. [node name="Zdm2NoLightmap" parent="." instance=ExtResource("1")]
  51. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2)
  52. [node name="Zdm2LightmapAll" parent="." instance=ExtResource("1")]
  53. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2)
  54. visible = false
  55. [node name="Zdm2LightmapIndirect" parent="." instance=ExtResource("1")]
  56. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2)
  57. visible = false
  58. [node name="VoxelGI" type="VoxelGI" parent="."]
  59. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5, 6, 2.5)
  60. size = Vector3(78, 37, 60)
  61. data = ExtResource("3_1netx")
  62. [node name="LightmapGIAll" type="LightmapGI" parent="."]
  63. visible = false
  64. quality = 3
  65. light_data = ExtResource("4_7vqwx")
  66. [node name="LightmapGIIndirect" type="LightmapGI" parent="."]
  67. visible = false
  68. quality = 3
  69. light_data = ExtResource("5_14bmd")
  70. [node name="Sun" type="DirectionalLight3D" parent="."]
  71. 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)
  72. shadow_enabled = true
  73. shadow_bias = 0.04
  74. shadow_blur = 2.0
  75. directional_shadow_fade_start = 1.0
  76. directional_shadow_max_distance = 75.0
  77. [node name="GrateOmniLight" type="OmniLight3D" parent="."]
  78. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 11.9461, -1.33084, -5.52646)
  79. light_color = Color(1, 0.905882, 0.470588, 1)
  80. shadow_enabled = true
  81. shadow_bias = 0.03
  82. shadow_blur = 2.0
  83. omni_range = 10.0
  84. omni_attenuation = 2.0
  85. [node name="GarageOmniLight" type="OmniLight3D" parent="."]
  86. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 21.6053, -1.96042, -13.798)
  87. light_color = Color(0.984314, 0.552941, 1, 1)
  88. light_energy = 15.0
  89. shadow_enabled = true
  90. shadow_bias = 0.03
  91. shadow_blur = 2.0
  92. omni_range = 10.0
  93. omni_attenuation = 2.0
  94. [node name="CornerSpotLight" type="SpotLight3D" parent="."]
  95. transform = Transform3D(0.909405, -0.0463933, 0.413316, -0.290385, -0.782269, 0.551118, 0.297756, -0.62121, -0.724872, -14.0594, -1.81824, 12.3035)
  96. light_color = Color(1, 0, 0, 1)
  97. light_energy = 14.77
  98. spot_range = 15.0
  99. spot_attenuation = 2.0
  100. spot_angle_attenuation = 0.5
  101. [node name="GlowingBox" parent="." instance=ExtResource("3")]
  102. transform = Transform3D(1.4, 0, 0, 0, 1, 0, 0, 0, 0.25, -0.681709, -0.108265, 25.4051)
  103. [node name="Cube" parent="GlowingBox" index="0"]
  104. surface_material_override/0 = SubResource("StandardMaterial3D_1n5k1")
  105. [node name="Camera" type="Camera3D" parent="."]
  106. transform = Transform3D(-0.997523, -0.00719588, 0.0699685, -8.94368e-09, 0.994753, 0.102305, -0.0703375, 0.102052, -0.992289, 11.7976, 1.49898, 9.54247)
  107. script = ExtResource("6")
  108. [node name="Box" type="MeshInstance3D" parent="Camera"]
  109. 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)
  110. layers = 2
  111. mesh = SubResource("8")
  112. [node name="BlobShadow" type="Decal" parent="Camera/Box"]
  113. 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)
  114. size = Vector3(2.5, 4, 2.5)
  115. texture_albedo = SubResource("GradientTexture2D_uu8pf")
  116. albedo_mix = 0.9
  117. upper_fade = 1.0
  118. lower_fade = 1.0
  119. cull_mask = 1048573
  120. [node name="ReflectiveSphere" type="MeshInstance3D" parent="Camera"]
  121. 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)
  122. layers = 2
  123. mesh = SubResource("2")
  124. surface_material_override/0 = SubResource("StandardMaterial3D_7doxp")
  125. [node name="ReflectionProbe" type="ReflectionProbe" parent="Camera/ReflectiveSphere"]
  126. 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)
  127. max_distance = 50.0
  128. size = Vector3(22, 22, 22)
  129. box_projection = true
  130. enable_shadows = true
  131. ambient_mode = 0
  132. [node name="BlobShadow" type="Decal" parent="Camera/ReflectiveSphere"]
  133. transform = Transform3D(1, -1.37668e-14, 0, 1.33227e-15, 1, 1.42109e-14, 0, 0, 1, 0, -1, -1.90735e-06)
  134. size = Vector3(2.5, 4, 2.5)
  135. texture_albedo = SubResource("GradientTexture2D_uu8pf")
  136. albedo_mix = 0.9
  137. upper_fade = 1.0
  138. lower_fade = 1.0
  139. cull_mask = 1048573
  140. [node name="GIMode" type="Label" parent="."]
  141. offset_left = 16.0
  142. offset_top = 16.0
  143. offset_right = 263.0
  144. offset_bottom = 42.0
  145. theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
  146. theme_override_constants/outline_size = 4
  147. text = "Global illumination: None (Fastest)"
  148. [node name="ReflectionProbeMode" type="Label" parent="."]
  149. offset_left = 16.0
  150. offset_top = 48.0
  151. offset_right = 148.0
  152. offset_bottom = 74.0
  153. theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
  154. theme_override_constants/outline_size = 4
  155. text = "Reflection probe: Disabled - Using environment, VoxelGI or SDFGI reflections (Fast)"
  156. [node name="SSILMode" type="Label" parent="."]
  157. offset_left = 16.0
  158. offset_top = 80.0
  159. offset_right = 365.0
  160. offset_bottom = 106.0
  161. theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
  162. theme_override_constants/outline_size = 4
  163. text = "Screen-space lighting effects: Disabled (Fast)"
  164. [node name="Label" type="Label" parent="."]
  165. anchors_preset = 2
  166. anchor_top = 1.0
  167. anchor_bottom = 1.0
  168. offset_left = 16.0
  169. offset_top = -120.0
  170. offset_right = 537.0
  171. offset_bottom = -16.0
  172. theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
  173. theme_override_constants/outline_size = 4
  174. text = "Space: Cycle between GI modes
  175. R: Cycle between reflection probe modes
  176. F: Cycle between screen-space lighting effect modes
  177. Escape or F10: Toggle mouse capture"
  178. [editable path="GlowingBox"]