diff --git a/DungeonShooting_Godot/scene/Main.tscn b/DungeonShooting_Godot/scene/Main.tscn index 879e70e..a49bbb2 100644 --- a/DungeonShooting_Godot/scene/Main.tscn +++ b/DungeonShooting_Godot/scene/Main.tscn @@ -49,7 +49,6 @@ [node name="SubViewport" type="SubViewport" parent="ViewCanvas/SubViewportContainer"] handle_input_locally = false canvas_item_default_texture_filter = 0 -sdf_oversize = 0 size = Vector2i(482, 272) render_target_update_mode = 4 diff --git a/DungeonShooting_Godot/src/game/camera/GameCamera.cs b/DungeonShooting_Godot/src/game/camera/GameCamera.cs index 7a2e682..9793071 100644 --- a/DungeonShooting_Godot/src/game/camera/GameCamera.cs +++ b/DungeonShooting_Godot/src/game/camera/GameCamera.cs @@ -49,10 +49,11 @@ var camPos = player.GlobalPosition; //var camPos = player.GlobalPosition.Lerp(mousePos, 0); //_camPos = camPos + _shakeOffset; - _camPos = _camPos.Lerp(camPos, Mathf.Min(5 * newDelta, 1)) + _shakeOffset; + _camPos = _camPos.Lerp(camPos, Mathf.Min(6 * newDelta, 1)) + _shakeOffset; SubPixelPosition = _camPos.Round() - _camPos; - (viewportContainer.Material as ShaderMaterial)?.SetShaderParameter("offset", SubPixelPosition); + //(viewportContainer.Material as ShaderMaterial)?.SetShaderParameter("offset", SubPixelPosition); GlobalPosition = _camPos.Round(); + //GlobalPosition = _camPos; } ///