Fix port cinematics and expand ship attractions
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user