From 2c244014df36b118ed20e9a7f94942107cba7d3e Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Mon, 25 Apr 2022 18:40:49 +0200 Subject: [PATCH] Revert accidental change in camera script in Global illumination demo This also tweaks the font shadow appearance for better visibility. --- 3d/global_illumination/camera.gd | 4 ++-- 3d/global_illumination/test.tscn | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/3d/global_illumination/camera.gd b/3d/global_illumination/camera.gd index b0bd4366..f9d393a2 100644 --- a/3d/global_illumination/camera.gd +++ b/3d/global_illumination/camera.gd @@ -29,9 +29,9 @@ func _input(event): func _process(delta): var motion = Vector3( - Input.get_action_strength("move_right") - Input.get_action_strength("move_left"), + Input.get_axis(&"move_left", &"move_right"), 0, - Input.get_action_strength("move_back") - Input.get_action_strength("move_forward") + Input.get_axis(&"move_forward", &"move_back") ) # Normalize motion to prevent diagonal movement from being diff --git a/3d/global_illumination/test.tscn b/3d/global_illumination/test.tscn index e941c2a1..ec8dc09f 100644 --- a/3d/global_illumination/test.tscn +++ b/3d/global_illumination/test.tscn @@ -121,6 +121,8 @@ 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 text = "Global illumination: None (Fastest)" [node name="ReflectionProbeMode" type="Label" parent="."] @@ -129,6 +131,8 @@ 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 text = "Reflection probe: Disabled - Using environment, VoxelGI or SDFGI reflections (Fast)" [node name="SSILMode" type="Label" parent="."] @@ -137,6 +141,8 @@ 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 text = "Screen-space lighting effects: Disabled (Fast)" [node name="Label" type="Label" parent="."] @@ -147,6 +153,8 @@ 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 text = "Space: Cycle between GI modes R: Toggle reflection probe F: Cycle between screen-space lighting effect modes