test.tscn 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670
  1. [gd_scene load_steps=26 format=3 uid="uid://bo5sv4e5gv8rc"]
  2. [ext_resource type="Script" path="res://day_night_cycle.gd" id="3_qt5yq"]
  3. [ext_resource type="Script" path="res://spin.gd" id="3_umwj4"]
  4. [ext_resource type="Texture2D" uid="uid://dxd67gur3av1s" path="res://logo_projector.png" id="5_ink5e"]
  5. [ext_resource type="Texture2D" uid="uid://chjqieyps5n5r" path="res://checker.png" id="14"]
  6. [ext_resource type="Script" path="res://tester.gd" id="18"]
  7. [sub_resource type="PhysicalSkyMaterial" id="PhysicalSkyMaterial_7hpiw"]
  8. [sub_resource type="Sky" id="10"]
  9. sky_material = SubResource("PhysicalSkyMaterial_7hpiw")
  10. process_mode = 3
  11. [sub_resource type="Environment" id="11"]
  12. background_mode = 2
  13. sky = SubResource("10")
  14. tonemap_mode = 3
  15. tonemap_white = 6.0
  16. sdfgi_min_cell_size = 0.05
  17. sdfgi_cascade0_distance = 3.2
  18. sdfgi_max_distance = 51.2
  19. fog_aerial_perspective = 1.0
  20. [sub_resource type="StandardMaterial3D" id="13"]
  21. diffuse_mode = 1
  22. albedo_texture = ExtResource("14")
  23. uv1_scale = Vector3(32, 32, 1)
  24. texture_filter = 5
  25. [sub_resource type="PlaneMesh" id="14"]
  26. material = SubResource("13")
  27. size = Vector2(128, 128)
  28. [sub_resource type="TorusMesh" id="TorusMesh_txea0"]
  29. inner_radius = 0.6
  30. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_4cnn8"]
  31. metallic = 1.0
  32. roughness = 0.0
  33. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_t7pdx"]
  34. metallic = 1.0
  35. roughness = 0.13
  36. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_j0me5"]
  37. metallic = 1.0
  38. roughness = 0.25
  39. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_0g651"]
  40. metallic = 1.0
  41. roughness = 0.38
  42. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_vuf50"]
  43. metallic = 1.0
  44. roughness = 0.5
  45. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_41q1b"]
  46. metallic = 1.0
  47. roughness = 0.63
  48. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_qfhtl"]
  49. metallic = 1.0
  50. roughness = 0.75
  51. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_pqd2q"]
  52. metallic = 1.0
  53. roughness = 0.88
  54. [sub_resource type="TorusMesh" id="TorusMesh_1m8cl"]
  55. [sub_resource type="BoxMesh" id="BoxMesh_u7sma"]
  56. size = Vector3(0.5, 0.5, 0.5)
  57. [sub_resource type="CylinderMesh" id="CylinderMesh_c5g5m"]
  58. top_radius = 0.0
  59. [sub_resource type="Gradient" id="Gradient_dfnk8"]
  60. colors = PackedColorArray(0.470076, 0.470076, 0.470076, 1, 1, 1, 1, 1)
  61. [sub_resource type="FastNoiseLite" id="FastNoiseLite_ekg3u"]
  62. noise_type = 2
  63. fractal_lacunarity = 4.203
  64. cellular_return_type = 6
  65. [sub_resource type="NoiseTexture2D" id="NoiseTexture2D_4cuji"]
  66. width = 128
  67. height = 128
  68. seamless = true
  69. color_ramp = SubResource("Gradient_dfnk8")
  70. noise = SubResource("FastNoiseLite_ekg3u")
  71. [node name="WorldEnvironment" type="WorldEnvironment"]
  72. environment = SubResource("11")
  73. script = ExtResource("18")
  74. [node name="Plane" type="MeshInstance3D" parent="."]
  75. layers = 2
  76. cast_shadow = 2
  77. mesh = SubResource("14")
  78. [node name="Torus" type="MeshInstance3D" parent="."]
  79. transform = Transform3D(0.707107, -0.707107, 0, 0.707107, 0.707107, 0, 0, 0, 1, 3, 0.7, 26)
  80. mesh = SubResource("TorusMesh_txea0")
  81. surface_material_override/0 = SubResource("StandardMaterial3D_4cnn8")
  82. [node name="Torus2" type="MeshInstance3D" parent="."]
  83. transform = Transform3D(0.707107, -0.707107, 0, 0.707107, 0.707107, 0, 0, 0, 1, 3, 0.7, 22)
  84. mesh = SubResource("TorusMesh_txea0")
  85. surface_material_override/0 = SubResource("StandardMaterial3D_t7pdx")
  86. [node name="Torus3" type="MeshInstance3D" parent="."]
  87. transform = Transform3D(0.707107, -0.707107, 0, 0.707107, 0.707107, 0, 0, 0, 1, 3, 0.7, 18)
  88. mesh = SubResource("TorusMesh_txea0")
  89. surface_material_override/0 = SubResource("StandardMaterial3D_j0me5")
  90. [node name="Torus4" type="MeshInstance3D" parent="."]
  91. transform = Transform3D(0.707107, -0.707107, 0, 0.707107, 0.707107, 0, 0, 0, 1, 3, 0.7, 14)
  92. mesh = SubResource("TorusMesh_txea0")
  93. surface_material_override/0 = SubResource("StandardMaterial3D_0g651")
  94. [node name="Torus5" type="MeshInstance3D" parent="."]
  95. transform = Transform3D(0.707107, -0.707107, 0, 0.707107, 0.707107, 0, 0, 0, 1, 3, 0.7, 10)
  96. mesh = SubResource("TorusMesh_txea0")
  97. surface_material_override/0 = SubResource("StandardMaterial3D_vuf50")
  98. [node name="Torus6" type="MeshInstance3D" parent="."]
  99. transform = Transform3D(0.707107, -0.707107, 0, 0.707107, 0.707107, 0, 0, 0, 1, 3, 0.7, 6)
  100. mesh = SubResource("TorusMesh_txea0")
  101. surface_material_override/0 = SubResource("StandardMaterial3D_41q1b")
  102. [node name="Torus7" type="MeshInstance3D" parent="."]
  103. transform = Transform3D(0.707107, -0.707107, 0, 0.707107, 0.707107, 0, 0, 0, 1, 3, 0.7, 2)
  104. mesh = SubResource("TorusMesh_txea0")
  105. surface_material_override/0 = SubResource("StandardMaterial3D_qfhtl")
  106. [node name="Torus8" type="MeshInstance3D" parent="."]
  107. transform = Transform3D(0.707107, -0.707107, 0, 0.707107, 0.707107, 0, 0, 0, 1, 3, 0.7, -2)
  108. mesh = SubResource("TorusMesh_txea0")
  109. surface_material_override/0 = SubResource("StandardMaterial3D_pqd2q")
  110. [node name="DirectionalLight3D" type="DirectionalLight3D" parent="." groups=["animatable"]]
  111. transform = Transform3D(0.965224, 0.021904, 0.260505, 0.0170597, -0.999637, 0.0208427, 0.260867, -0.0156738, -0.965248, 3.9506, 3.39961, 3.54442)
  112. visible = false
  113. shadow_enabled = true
  114. shadow_bias = 0.05
  115. shadow_blur = 2.0
  116. directional_shadow_mode = 0
  117. directional_shadow_fade_start = 1.0
  118. directional_shadow_max_distance = 30.0
  119. script = ExtResource("3_qt5yq")
  120. [node name="CameraHolder" type="Node3D" parent="."]
  121. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.125, 26)
  122. [node name="RotationX" type="Node3D" parent="CameraHolder"]
  123. [node name="Camera3D" type="Camera3D" parent="CameraHolder/RotationX"]
  124. fov = 70.0
  125. [node name="Testers" type="Node3D" parent="."]
  126. [node name="OmniLightNoShadows" type="MeshInstance3D" parent="Testers"]
  127. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.2, 26)
  128. mesh = SubResource("TorusMesh_1m8cl")
  129. [node name="OmniLight3D" type="OmniLight3D" parent="Testers/OmniLightNoShadows" groups=["animatable"]]
  130. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8, 0)
  131. light_color = Color(1, 0.454902, 0.211765, 1)
  132. light_energy = 1.5
  133. script = ExtResource("3_umwj4")
  134. [node name="Box" type="MeshInstance3D" parent="Testers/OmniLightNoShadows"]
  135. mesh = SubResource("BoxMesh_u7sma")
  136. [node name="SmallBox" type="MeshInstance3D" parent="Testers/OmniLightNoShadows"]
  137. transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0, 0.3, 0)
  138. mesh = SubResource("BoxMesh_u7sma")
  139. [node name="Cone" type="MeshInstance3D" parent="Testers/OmniLightNoShadows"]
  140. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.5, 0.8, 0)
  141. mesh = SubResource("CylinderMesh_c5g5m")
  142. [node name="OmniLightWithShadows" type="MeshInstance3D" parent="Testers"]
  143. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.2, 22)
  144. mesh = SubResource("TorusMesh_1m8cl")
  145. [node name="OmniLight3D" type="OmniLight3D" parent="Testers/OmniLightWithShadows" groups=["animatable"]]
  146. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8, 0)
  147. light_color = Color(1, 0.454902, 0.211765, 1)
  148. light_energy = 1.5
  149. shadow_enabled = true
  150. shadow_bias = 0.03
  151. shadow_normal_bias = 4.0
  152. shadow_blur = 6.0
  153. script = ExtResource("3_umwj4")
  154. [node name="Box" type="MeshInstance3D" parent="Testers/OmniLightWithShadows"]
  155. mesh = SubResource("BoxMesh_u7sma")
  156. skeleton = NodePath("../../OmniLightNoShadows")
  157. [node name="SmallBox" type="MeshInstance3D" parent="Testers/OmniLightWithShadows"]
  158. transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0, 0.3, 0)
  159. mesh = SubResource("BoxMesh_u7sma")
  160. skeleton = NodePath("../../OmniLightNoShadows")
  161. [node name="Cone" type="MeshInstance3D" parent="Testers/OmniLightWithShadows"]
  162. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.5, 0.8, 0)
  163. mesh = SubResource("CylinderMesh_c5g5m")
  164. skeleton = NodePath("../../OmniLightNoShadows")
  165. [node name="OmniLightWithPCSSShadows" type="MeshInstance3D" parent="Testers"]
  166. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.2, 18)
  167. mesh = SubResource("TorusMesh_1m8cl")
  168. [node name="OmniLight3D" type="OmniLight3D" parent="Testers/OmniLightWithPCSSShadows" groups=["animatable"]]
  169. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8, 0)
  170. light_color = Color(1, 0.454902, 0.211765, 1)
  171. light_energy = 1.5
  172. light_size = 0.5
  173. shadow_enabled = true
  174. shadow_bias = 0.02
  175. shadow_normal_bias = 4.0
  176. shadow_blur = 0.2
  177. script = ExtResource("3_umwj4")
  178. [node name="Box" type="MeshInstance3D" parent="Testers/OmniLightWithPCSSShadows"]
  179. mesh = SubResource("BoxMesh_u7sma")
  180. skeleton = NodePath("../../OmniLightNoShadows")
  181. [node name="SmallBox" type="MeshInstance3D" parent="Testers/OmniLightWithPCSSShadows"]
  182. transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0, 0.3, 0)
  183. mesh = SubResource("BoxMesh_u7sma")
  184. skeleton = NodePath("../../OmniLightNoShadows")
  185. [node name="Cone" type="MeshInstance3D" parent="Testers/OmniLightWithPCSSShadows"]
  186. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.5, 0.8, 0)
  187. mesh = SubResource("CylinderMesh_c5g5m")
  188. skeleton = NodePath("../../OmniLightNoShadows")
  189. [node name="OmniLightWithProjector" type="MeshInstance3D" parent="Testers"]
  190. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.2, 14)
  191. mesh = SubResource("TorusMesh_1m8cl")
  192. [node name="OmniLight3D" type="OmniLight3D" parent="Testers/OmniLightWithProjector" groups=["animatable"]]
  193. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8, 0)
  194. light_color = Color(1, 0.454902, 0.211765, 1)
  195. light_energy = 3.0
  196. light_projector = SubResource("NoiseTexture2D_4cuji")
  197. shadow_enabled = true
  198. shadow_bias = 0.03
  199. shadow_normal_bias = 4.0
  200. shadow_blur = 6.0
  201. script = ExtResource("3_umwj4")
  202. [node name="Box" type="MeshInstance3D" parent="Testers/OmniLightWithProjector"]
  203. mesh = SubResource("BoxMesh_u7sma")
  204. skeleton = NodePath("../../OmniLightNoShadows")
  205. [node name="SmallBox" type="MeshInstance3D" parent="Testers/OmniLightWithProjector"]
  206. transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0, 0.3, 0)
  207. mesh = SubResource("BoxMesh_u7sma")
  208. skeleton = NodePath("../../OmniLightNoShadows")
  209. [node name="Cone" type="MeshInstance3D" parent="Testers/OmniLightWithProjector"]
  210. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.5, 0.8, 0)
  211. mesh = SubResource("CylinderMesh_c5g5m")
  212. skeleton = NodePath("../../OmniLightNoShadows")
  213. [node name="OmniLightAttenuation" type="Node3D" parent="Testers"]
  214. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.2, 10)
  215. [node name="OmniLight3D" type="OmniLight3D" parent="Testers/OmniLightAttenuation"]
  216. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, -0.1, -0.5)
  217. light_color = Color(1, 0.454902, 0.211765, 1)
  218. light_energy = 3.0
  219. shadow_blur = 3.0
  220. omni_range = 0.55
  221. omni_attenuation = 2.0
  222. [node name="OmniLight3D2" type="OmniLight3D" parent="Testers/OmniLightAttenuation"]
  223. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.1, -0.5)
  224. light_color = Color(1, 0.454902, 0.211765, 1)
  225. light_energy = 3.0
  226. shadow_blur = 3.0
  227. omni_range = 0.55
  228. [node name="OmniLight3D3" type="OmniLight3D" parent="Testers/OmniLightAttenuation"]
  229. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, -0.1, -0.5)
  230. light_color = Color(1, 0.454902, 0.211765, 1)
  231. light_energy = 3.0
  232. shadow_blur = 3.0
  233. omni_range = 0.55
  234. omni_attenuation = 0.5
  235. [node name="OmniLight3D4" type="OmniLight3D" parent="Testers/OmniLightAttenuation"]
  236. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, -0.1, 0.5)
  237. light_color = Color(1, 0.454902, 0.211765, 1)
  238. light_energy = 3.0
  239. shadow_blur = 3.0
  240. omni_range = 0.55
  241. omni_attenuation = 0.0
  242. [node name="OmniLight3D5" type="OmniLight3D" parent="Testers/OmniLightAttenuation"]
  243. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.1, 0.5)
  244. light_color = Color(1, 0.454902, 0.211765, 1)
  245. light_energy = 3.0
  246. shadow_blur = 3.0
  247. omni_range = 0.55
  248. omni_attenuation = -2.0
  249. [node name="OmniLight3D6" type="OmniLight3D" parent="Testers/OmniLightAttenuation"]
  250. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, -0.1, 0.5)
  251. light_color = Color(1, 0.454902, 0.211765, 1)
  252. light_energy = 3.0
  253. shadow_blur = 3.0
  254. omni_range = 0.55
  255. omni_attenuation = -0.5
  256. [node name="SpotLightNoShadows" type="MeshInstance3D" parent="Testers"]
  257. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.2, 6)
  258. mesh = SubResource("TorusMesh_1m8cl")
  259. [node name="SpotLight3D" type="SpotLight3D" parent="Testers/SpotLightNoShadows" groups=["animatable"]]
  260. transform = Transform3D(0.866025, -2.18557e-08, 0.5, -0.5, -3.78552e-08, 0.866025, 0, -1, -4.37114e-08, 0, 1.4, 0)
  261. light_color = Color(0.686275, 0.568627, 0.909804, 1)
  262. light_energy = 1.5
  263. spot_range = 10.0
  264. spot_angle = 60.0
  265. script = ExtResource("3_umwj4")
  266. [node name="Box" type="MeshInstance3D" parent="Testers/SpotLightNoShadows"]
  267. mesh = SubResource("BoxMesh_u7sma")
  268. skeleton = NodePath("../../OmniLightNoShadows")
  269. [node name="SmallBox" type="MeshInstance3D" parent="Testers/SpotLightNoShadows"]
  270. transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0, 0.3, 0)
  271. mesh = SubResource("BoxMesh_u7sma")
  272. skeleton = NodePath("../../OmniLightNoShadows")
  273. [node name="Cone" type="MeshInstance3D" parent="Testers/SpotLightNoShadows"]
  274. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.5, 0.8, 0)
  275. mesh = SubResource("CylinderMesh_c5g5m")
  276. skeleton = NodePath("../../OmniLightNoShadows")
  277. [node name="SpotLightWithShadows" type="MeshInstance3D" parent="Testers"]
  278. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.2, 2)
  279. mesh = SubResource("TorusMesh_1m8cl")
  280. [node name="SpotLight3D" type="SpotLight3D" parent="Testers/SpotLightWithShadows" groups=["animatable"]]
  281. transform = Transform3D(0.866025, -2.18557e-08, 0.5, -0.5, -3.78552e-08, 0.866025, 0, -1, -4.37114e-08, 0, 1.4, 0)
  282. light_color = Color(0.686275, 0.568627, 0.909804, 1)
  283. light_energy = 1.5
  284. shadow_enabled = true
  285. shadow_bias = 0.001
  286. shadow_normal_bias = 4.0
  287. shadow_blur = 3.0
  288. spot_range = 10.0
  289. spot_angle = 60.0
  290. script = ExtResource("3_umwj4")
  291. [node name="Box" type="MeshInstance3D" parent="Testers/SpotLightWithShadows"]
  292. mesh = SubResource("BoxMesh_u7sma")
  293. skeleton = NodePath("../../OmniLightNoShadows")
  294. [node name="SmallBox" type="MeshInstance3D" parent="Testers/SpotLightWithShadows"]
  295. transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0, 0.3, 0)
  296. mesh = SubResource("BoxMesh_u7sma")
  297. skeleton = NodePath("../../OmniLightNoShadows")
  298. [node name="Cone" type="MeshInstance3D" parent="Testers/SpotLightWithShadows"]
  299. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.5, 0.8, 0)
  300. mesh = SubResource("CylinderMesh_c5g5m")
  301. skeleton = NodePath("../../OmniLightNoShadows")
  302. [node name="SpotLightWithPCSSShadows" type="MeshInstance3D" parent="Testers"]
  303. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.2, -2)
  304. mesh = SubResource("TorusMesh_1m8cl")
  305. [node name="SpotLight3D" type="SpotLight3D" parent="Testers/SpotLightWithPCSSShadows" groups=["animatable"]]
  306. transform = Transform3D(0.866025, -2.18557e-08, 0.5, -0.5, -3.78552e-08, 0.866025, 0, -1, -4.37114e-08, 0, 1.4, 0)
  307. light_color = Color(0.686275, 0.568627, 0.909804, 1)
  308. light_energy = 1.5
  309. light_size = 1.0
  310. shadow_enabled = true
  311. shadow_bias = 0.01
  312. shadow_normal_bias = 4.0
  313. spot_range = 10.0
  314. spot_angle = 60.0
  315. script = ExtResource("3_umwj4")
  316. [node name="Box" type="MeshInstance3D" parent="Testers/SpotLightWithPCSSShadows"]
  317. mesh = SubResource("BoxMesh_u7sma")
  318. skeleton = NodePath("../../OmniLightNoShadows")
  319. [node name="SmallBox" type="MeshInstance3D" parent="Testers/SpotLightWithPCSSShadows"]
  320. transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0, 0.3, 0)
  321. mesh = SubResource("BoxMesh_u7sma")
  322. skeleton = NodePath("../../OmniLightNoShadows")
  323. [node name="Cone" type="MeshInstance3D" parent="Testers/SpotLightWithPCSSShadows"]
  324. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.5, 0.8, 0)
  325. mesh = SubResource("CylinderMesh_c5g5m")
  326. skeleton = NodePath("../../OmniLightNoShadows")
  327. [node name="SpotLightWithProjector" type="MeshInstance3D" parent="Testers"]
  328. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.2, -6)
  329. mesh = SubResource("TorusMesh_1m8cl")
  330. [node name="SpotLight3D" type="SpotLight3D" parent="Testers/SpotLightWithProjector" groups=["animatable"]]
  331. transform = Transform3D(0.866025, -2.18557e-08, 0.5, -0.5, -3.78552e-08, 0.866025, 0, -1, -4.37114e-08, 0, 1.4, 0)
  332. light_color = Color(0.686275, 0.568627, 0.909804, 1)
  333. light_energy = 4.0
  334. light_projector = ExtResource("5_ink5e")
  335. shadow_enabled = true
  336. shadow_bias = 0.001
  337. shadow_normal_bias = 4.0
  338. shadow_blur = 3.0
  339. spot_range = 10.0
  340. spot_angle_attenuation = 0.032352
  341. script = ExtResource("3_umwj4")
  342. [node name="Box" type="MeshInstance3D" parent="Testers/SpotLightWithProjector"]
  343. mesh = SubResource("BoxMesh_u7sma")
  344. skeleton = NodePath("../../OmniLightNoShadows")
  345. [node name="SmallBox" type="MeshInstance3D" parent="Testers/SpotLightWithProjector"]
  346. transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0, 0.3, 0)
  347. mesh = SubResource("BoxMesh_u7sma")
  348. skeleton = NodePath("../../OmniLightNoShadows")
  349. [node name="Cone" type="MeshInstance3D" parent="Testers/SpotLightWithProjector"]
  350. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.5, 0.8, 0)
  351. mesh = SubResource("CylinderMesh_c5g5m")
  352. skeleton = NodePath("../../OmniLightNoShadows")
  353. [node name="SpotLightAngleAttenuation" type="Node3D" parent="Testers"]
  354. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.2, -10)
  355. [node name="SpotLight3D" type="SpotLight3D" parent="Testers/SpotLightAngleAttenuation"]
  356. transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 1, 0.4, 0)
  357. light_color = Color(0.686275, 0.568627, 0.909804, 1)
  358. light_energy = 3.0
  359. shadow_blur = 3.0
  360. spot_range = 2.0
  361. spot_attenuation = -2.0
  362. spot_angle = 40.0
  363. [node name="SpotLight3D2" type="SpotLight3D" parent="Testers/SpotLightAngleAttenuation"]
  364. transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0.4, 0)
  365. light_color = Color(0.686275, 0.568627, 0.909804, 1)
  366. light_energy = 3.0
  367. shadow_blur = 3.0
  368. spot_range = 2.0
  369. spot_attenuation = -2.0
  370. spot_angle = 40.0
  371. spot_angle_attenuation = 2.0
  372. [node name="SpotLight3D3" type="SpotLight3D" parent="Testers/SpotLightAngleAttenuation"]
  373. transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, -1, 0.4, 0)
  374. light_color = Color(0.686275, 0.568627, 0.909804, 1)
  375. light_energy = 3.0
  376. shadow_blur = 3.0
  377. spot_range = 2.0
  378. spot_attenuation = -2.0
  379. spot_angle = 40.0
  380. spot_angle_attenuation = 0.5
  381. [node name="SpotLight3D4" type="SpotLight3D" parent="Testers/SpotLightAngleAttenuation"]
  382. transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, -1, 0.4, 1)
  383. light_color = Color(0.686275, 0.568627, 0.909804, 1)
  384. light_energy = 3.0
  385. shadow_blur = 3.0
  386. spot_range = 2.0
  387. spot_attenuation = -2.0
  388. spot_angle = 40.0
  389. spot_angle_attenuation = 0.305739
  390. [node name="SpotLight3D5" type="SpotLight3D" parent="Testers/SpotLightAngleAttenuation"]
  391. transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0.4, 1)
  392. light_color = Color(0.686275, 0.568627, 0.909804, 1)
  393. light_energy = 3.0
  394. shadow_blur = 3.0
  395. spot_range = 2.0
  396. spot_attenuation = -2.0
  397. spot_angle = 40.0
  398. spot_angle_attenuation = 3.4822
  399. [node name="SpotLight3D6" type="SpotLight3D" parent="Testers/SpotLightAngleAttenuation"]
  400. transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 1, 0.4, 1)
  401. light_color = Color(0.686275, 0.568627, 0.909804, 1)
  402. light_energy = 3.0
  403. shadow_blur = 3.0
  404. spot_range = 2.0
  405. spot_attenuation = -2.0
  406. spot_angle = 40.0
  407. spot_angle_attenuation = 21.1121
  408. [node name="TestName" type="Label" parent="."]
  409. anchors_preset = 7
  410. anchor_left = 0.5
  411. anchor_top = 1.0
  412. anchor_right = 0.5
  413. anchor_bottom = 1.0
  414. offset_left = -192.0
  415. offset_top = -58.0
  416. offset_right = 192.0
  417. offset_bottom = -24.0
  418. grow_horizontal = 2
  419. grow_vertical = 0
  420. theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
  421. theme_override_constants/outline_size = 5
  422. theme_override_font_sizes/font_size = 24
  423. horizontal_alignment = 1
  424. [node name="Previous" type="Button" parent="."]
  425. anchors_preset = 2
  426. anchor_top = 1.0
  427. anchor_bottom = 1.0
  428. offset_left = 24.0
  429. offset_top = -55.0
  430. offset_right = 135.0
  431. offset_bottom = -24.0
  432. grow_vertical = 0
  433. text = "« Previous"
  434. [node name="Next" type="Button" parent="."]
  435. anchors_preset = 3
  436. anchor_left = 1.0
  437. anchor_top = 1.0
  438. anchor_right = 1.0
  439. anchor_bottom = 1.0
  440. offset_left = -107.0
  441. offset_top = -55.0
  442. offset_right = -24.0
  443. offset_bottom = -24.0
  444. grow_horizontal = 0
  445. grow_vertical = 0
  446. text = "Next »"
  447. [node name="VBoxContainer" type="VBoxContainer" parent="."]
  448. offset_left = 16.0
  449. offset_top = 16.0
  450. offset_right = 527.0
  451. offset_bottom = 187.0
  452. [node name="EnableSun" type="CheckButton" parent="VBoxContainer"]
  453. custom_minimum_size = Vector2(218, 0)
  454. layout_mode = 2
  455. size_flags_horizontal = 0
  456. focus_mode = 0
  457. theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
  458. theme_override_constants/h_separation = 10
  459. theme_override_constants/outline_size = 4
  460. text = "Enable Sun"
  461. alignment = 2
  462. [node name="AnimateLights" type="CheckButton" parent="VBoxContainer"]
  463. custom_minimum_size = Vector2(218, 0)
  464. layout_mode = 2
  465. size_flags_horizontal = 0
  466. focus_mode = 0
  467. theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
  468. theme_override_constants/h_separation = 10
  469. theme_override_constants/outline_size = 4
  470. button_pressed = true
  471. text = "Animate Lights"
  472. alignment = 2
  473. [node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
  474. layout_mode = 2
  475. theme_override_constants/separation = 10
  476. [node name="Label" type="Label" parent="VBoxContainer/HBoxContainer"]
  477. layout_mode = 2
  478. size_flags_horizontal = 3
  479. theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
  480. theme_override_constants/outline_size = 4
  481. text = "Shadow Resolution"
  482. horizontal_alignment = 2
  483. [node name="ShadowResolution" type="OptionButton" parent="VBoxContainer/HBoxContainer"]
  484. layout_mode = 2
  485. size_flags_horizontal = 3
  486. size_flags_stretch_ratio = 1.95
  487. focus_mode = 0
  488. item_count = 5
  489. selected = 2
  490. popup/item_0/text = "1024×1024 (Faster)"
  491. popup/item_0/id = 2
  492. popup/item_1/text = "2048×2048 (Fast)"
  493. popup/item_1/id = 3
  494. popup/item_2/text = "4096×4096 (Average)"
  495. popup/item_2/id = 4
  496. popup/item_3/text = "8192×8192 (Slow)"
  497. popup/item_3/id = 5
  498. popup/item_4/text = "16384×16384 (Slowest)"
  499. popup/item_4/id = 6
  500. [node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer"]
  501. layout_mode = 2
  502. theme_override_constants/separation = 10
  503. [node name="Label" type="Label" parent="VBoxContainer/HBoxContainer2"]
  504. layout_mode = 2
  505. size_flags_horizontal = 3
  506. theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
  507. theme_override_constants/outline_size = 4
  508. text = "Shadow Filter Quality"
  509. horizontal_alignment = 2
  510. [node name="ShadowFilterQuality" type="OptionButton" parent="VBoxContainer/HBoxContainer2"]
  511. layout_mode = 2
  512. size_flags_horizontal = 3
  513. size_flags_stretch_ratio = 1.95
  514. focus_mode = 0
  515. item_count = 6
  516. selected = 3
  517. popup/item_0/text = "Hard (Fastest)"
  518. popup/item_0/id = 0
  519. popup/item_1/text = "Soft Very Low (Faster)"
  520. popup/item_1/id = 1
  521. popup/item_2/text = "Soft Low (Fast)"
  522. popup/item_2/id = 2
  523. popup/item_3/text = "Soft Medium (Average)"
  524. popup/item_3/id = 3
  525. popup/item_4/text = "Soft High (Slow)"
  526. popup/item_4/id = 5
  527. popup/item_5/text = "Soft Ultra (Slowest)"
  528. popup/item_5/id = 6
  529. [node name="HBoxContainer3" type="HBoxContainer" parent="VBoxContainer"]
  530. layout_mode = 2
  531. theme_override_constants/separation = 10
  532. [node name="Label" type="Label" parent="VBoxContainer/HBoxContainer3"]
  533. layout_mode = 2
  534. size_flags_horizontal = 3
  535. theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
  536. theme_override_constants/outline_size = 4
  537. text = "Projector Filter Mode"
  538. horizontal_alignment = 2
  539. [node name="ProjectorFilterMode" type="OptionButton" parent="VBoxContainer/HBoxContainer3"]
  540. layout_mode = 2
  541. size_flags_horizontal = 3
  542. size_flags_stretch_ratio = 1.95
  543. focus_mode = 0
  544. item_count = 6
  545. selected = 5
  546. popup/item_0/text = "Nearest"
  547. popup/item_0/id = 0
  548. popup/item_1/text = "Linear"
  549. popup/item_1/id = 1
  550. popup/item_2/text = "Nearest + Mipmaps"
  551. popup/item_2/id = 2
  552. popup/item_3/text = "Linear + Mipmaps"
  553. popup/item_3/id = 3
  554. popup/item_4/text = "Nearest + Mipmaps + 16× Anisotropic"
  555. popup/item_4/id = 4
  556. popup/item_5/text = "Linear + Mipmaps + 16× Anisotropic"
  557. popup/item_5/id = 5
  558. [connection signal="pressed" from="Previous" to="." method="_on_previous_pressed"]
  559. [connection signal="pressed" from="Next" to="." method="_on_next_pressed"]
  560. [connection signal="toggled" from="VBoxContainer/EnableSun" to="." method="_on_enable_sun_toggled"]
  561. [connection signal="toggled" from="VBoxContainer/AnimateLights" to="." method="_on_animate_lights_toggled"]
  562. [connection signal="item_selected" from="VBoxContainer/HBoxContainer/ShadowResolution" to="." method="_on_shadow_resolution_item_selected"]
  563. [connection signal="item_selected" from="VBoxContainer/HBoxContainer2/ShadowFilterQuality" to="." method="_on_shadow_filter_quality_item_selected"]
  564. [connection signal="item_selected" from="VBoxContainer/HBoxContainer3/ProjectorFilterMode" to="." method="_on_projector_filter_mode_item_selected"]