Add MEGA Ocean Liner, split decks, and detailed ship materials

This commit is contained in:
josh
2026-11-28 21:02:42 -05:00
parent ce0d38c8de
commit 46624bf5ba
47 changed files with 2042 additions and 382 deletions

View File

@@ -56,7 +56,8 @@ namespace BigShipTycoon
{
material.SetFloat("_BayLength", bayLength);
material.SetFloat("_RoomLight", Mathf.Lerp(CorridorHalfWidth, halfWidth, .55f));
material.SetFloat("_DeckTread", pair.Key is Floor or RoomFloor or Grating ? 1 : 0);
material.SetFloat("_DeckTread", pair.Key == Grating ? 2 : pair.Key is Floor or RoomFloor ? 1 : 0);
material.SetFloat("_BulkheadLining", pair.Key is Wall or WallBase or Ceiling ? 1 : 0);
}
game.GetComponent<MeshFilter>().sharedMesh = mesh;
game.GetComponent<MeshRenderer>().sharedMaterial = material;