Exemplo n.º 1
0
 public void convertLegacySplatmap()
 {
     for (int i = 0; i < Landscape.SPLATMAP_RESOLUTION; i++)
     {
         for (int j = 0; j < Landscape.SPLATMAP_RESOLUTION; j++)
         {
             SplatmapCoord splatmapCoord = new SplatmapCoord(i, j);
             Vector3       worldPosition = Landscape.getWorldPosition(this.coord, splatmapCoord);
             for (int k = 0; k < Landscape.SPLATMAP_LAYERS; k++)
             {
                 float conversionWeight = LevelGround.getConversionWeight(worldPosition, k, true);
                 this.sourceSplatmap[i, j, k] = conversionWeight;
             }
         }
     }
     this.data.SetAlphamaps(0, 0, this.sourceSplatmap);
 }