Add MEGA Ocean Liner, split decks, and detailed ship materials
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user