Skeleton copied from medea TerrainTile sample and updated.