Fix port cinematics and expand ship attractions

This commit is contained in:
josh
2026-11-28 18:39:32 -05:00
parent 2c85a5ba00
commit 56fafba6d9
37 changed files with 936 additions and 101 deletions

View File

@@ -89,11 +89,7 @@ namespace Soundings
{
float cropX = Mathf.Min(1, aspect / portMatteAspect) * .91f;
float cropY = Mathf.Min(1, portMatteAspect / aspect) * .91f;
float pan = Mathf.Lerp(-.041f, .057f, portFrame) * (portArrival ? -1 : 1);
float shiftX = Mathf.Clamp(pan, -.46f * (1 - cropX), .46f * (1 - cropX));
float shiftY = Mathf.Lerp(-.088f, -.108f, portArrival ? 1f - portFrame : portFrame);
shiftY = Mathf.Clamp(shiftY, -.49f * (1 - cropY), .49f * (1 - cropY));
water.SetVector("_PortMatteCrop", new Vector4(cropX, cropY, shiftX, shiftY));
water.SetVector("_PortMatteCrop", new Vector4(cropX, cropY, 0, -.49f * (1 - cropY)));
}
internal static bool AllPortsHaveScenery => PortProfiles.Length == Market.Ports.Count;