Пример #1
0
 // Token: 0x06000CBB RID: 3259 RVA: 0x0005DD84 File Offset: 0x0005C184
 private static void bake(FoliageTile tile, List <IFoliageSurface> list)
 {
     FoliageSystem.bakePreTile(FoliageSystem.bakeSettings, tile);
     if (FoliageSystem.preBakeTile != null)
     {
         FoliageSystem.preBakeTile(FoliageSystem.bakeSettings, tile);
     }
     if (!FoliageSystem.bakeSettings.bakeApplyScale)
     {
         foreach (IFoliageSurface foliageSurface in list)
         {
             foliageSurface.bakeFoliageSurface(FoliageSystem.bakeSettings, tile);
         }
     }
     FoliageSystem.bakePostTile(FoliageSystem.bakeSettings, tile);
     if (FoliageSystem.postBakeTile != null)
     {
         FoliageSystem.postBakeTile(FoliageSystem.bakeSettings, tile);
     }
 }