From 4cbb234b8e0f28f435d8233c0bd3c0d328657982 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Mon, 22 Nov 2021 18:53:31 +0100 Subject: [PATCH] Add more lighting to levels --- scenes/infinite_loop_track_level.tscn | 9 +++++++++ scenes/rounding_error_track_level.tscn | 5 +++++ scenes/scarab_track_level.tscn | 8 +++++++- scenes/test_level.tscn | 2 ++ 4 files changed, 23 insertions(+), 1 deletion(-) diff --git a/scenes/infinite_loop_track_level.tscn b/scenes/infinite_loop_track_level.tscn index 26ec88d..44168fa 100644 --- a/scenes/infinite_loop_track_level.tscn +++ b/scenes/infinite_loop_track_level.tscn @@ -152,4 +152,13 @@ material/0 = null [node name="CollisionShape" type="CollisionShape" parent="StaticBody" index="1"] shape = SubResource( 11 ) +[node name="OmniLight" type="OmniLight" parent="." index="6"] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 152.638, 0 ) +light_energy = 2.0 +light_indirect_energy = 9.073 +light_specular = 0.0 +shadow_bias = 5.0 +shadow_contact = 10.0 +omni_range = 386.504 + [connection signal="body_entered" from="ResetArea" to="." method="_on_ResetArea_body_entered"] diff --git a/scenes/rounding_error_track_level.tscn b/scenes/rounding_error_track_level.tscn index f6a2877..2d09005 100644 --- a/scenes/rounding_error_track_level.tscn +++ b/scenes/rounding_error_track_level.tscn @@ -219,4 +219,9 @@ transform = Transform( 10.1959, 0, 0, 0, 0.278844, 0, 0, 0, 10.1959, -0.0041151, mesh = SubResource( 22 ) material/0 = null +[node name="DirectionalLight" type="DirectionalLight" parent="." index="8"] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 114.863, 0 ) +light_energy = 10.0 +shadow_enabled = true + [connection signal="body_entered" from="ResetArea" to="." method="_on_ResetArea_body_entered"] diff --git a/scenes/scarab_track_level.tscn b/scenes/scarab_track_level.tscn index 2f3d2a4..f5db29d 100644 --- a/scenes/scarab_track_level.tscn +++ b/scenes/scarab_track_level.tscn @@ -69,7 +69,7 @@ polygon = PoolVector2Array( -5, 0.01, -5, 1, 5, 1, 5, 0.01 ) mode = 2 path_node = NodePath("../..") path_interval_type = 0 -path_interval = 1.0 +path_interval = 5.0 path_simplify_angle = 0.0 path_rotation = 2 path_local = true @@ -81,6 +81,7 @@ material = SubResource( 22 ) [node name="CSGBox" type="CSGBox" parent="Path/CSGCombiner" index="1"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 10, 0 ) operation = 2 +snap = 0.1 width = 589.656 height = 19.4136 depth = 443.585 @@ -202,3 +203,8 @@ radius = 4.51348 height = 16.3311 sides = 20 material = SubResource( 22 ) + +[node name="DirectionalLight" type="DirectionalLight" parent="." index="13"] +transform = Transform( 0.851306, 0, -0.52467, 0, 1, 0, 0.52467, 0, 0.851306, 0, 35.584, 0 ) +light_energy = 5.0 +shadow_enabled = true diff --git a/scenes/test_level.tscn b/scenes/test_level.tscn index a75b1ca..cdc3b85 100644 --- a/scenes/test_level.tscn +++ b/scenes/test_level.tscn @@ -86,3 +86,5 @@ path_local = true path_continuous_u = true path_u_distance = 1.0 path_joined = true + +[node name="DirectionalLight" type="DirectionalLight" parent="." index="4"]