Add riverboat captain career and distinct ship classes

Add class-specific vessel geometry and sea motion, a guided helm qualification path, dockside sailing orders, and local excursions at all 24 ports.
This commit is contained in:
josh
2026-11-29 20:41:00 -05:00
parent 46624bf5ba
commit 290e4cb45d
67 changed files with 1783 additions and 301 deletions

View File

@@ -151,7 +151,7 @@ Shader "BigShipTycoon/Harbor Water"
float swellDetail = 1 - smoothstep(175, 700, distance);
float textureDetail = 1 - smoothstep(68, 525, distance);
float surfaceDetail = 1 - smoothstep(23, 175, distance);
float roughness = lerp(.60, 1.18, _WeatherSeverity);
float roughness = lerp(.60, 1.18, _WeatherSeverity) * lerp(1, .66, _TycoonRiverWater);
float2 slope = waves.yz * swellDetail + WindSlope(position, chop.b, _SeaTime) * textureDetail * roughness
+ ((chop.rg - .5) * .34 + rippleSlope * .29) * textureDetail * roughness
+ surfaceSlope * (.115 * surfaceDetail * roughness);
@@ -162,6 +162,8 @@ Shader "BigShipTycoon/Harbor Water"
float cap = saturate(dot(normal, Sun) * .84 + (chop.b - .5) * textureDetail * .63 + .35);
float3 fromBelow = lerp(float3(.028,.125,.192), float3(.078,.250,.294), cap);
fromBelow = lerp(fromBelow, fromBelow * .57 + float3(.022,.032,.036), _WeatherSeverity);
float3 riverWater = lerp(float3(.061,.130,.113), float3(.139,.249,.215), cap);
fromBelow = lerp(fromBelow, riverWater, _TycoonRiverWater);
if (_PortMotion > .5)
{
float3 shallowWater = lerp(float3(.03,.31,.32), float3(.15,.52,.48), cap);
@@ -173,10 +175,11 @@ Shader "BigShipTycoon/Harbor Water"
float reflectedLight = pow(sunHit, lerp(28, 15, _WeatherSeverity));
color += (nearSun * .43 + reflectedLight * .13) * float3(1,.86,.65) * (1 - _WeatherSeverity * .88);
float crest = waves.x / lerp(.35, 1.46, _WeatherSeverity * _WeatherSeverity);
float crest = waves.x / WaveAmplitude(_WeatherSeverity);
float churn = .55 * chop.b + .28 * ripples.b + .17 * surface.b;
float capFoam = smoothstep(.65, .85, churn + crest * .19 + length(slope) * .17);
color = lerp(color, float3(.64,.74,.76), capFoam * textureDetail * (.035 + _WeatherSeverity * .58));
color = lerp(color, float3(.64,.74,.76), capFoam * textureDetail * (.035 + _WeatherSeverity * .58)
* lerp(1, .26, _TycoonRiverWater));
if (_HullSpan.x > 1)
{