Пример #1
0
    public NativeArray <PlanetElementType> CreatePlanetMap()
    {
        mapSize = (int)(2 * shape.radius + 2 * shape.deformation);
        center  = float2(mapSize / 2f);

        NativeArray <float>             noiseMap  = Noise.CreateNoiseMap(seed, mapSize, noiseList);
        NativeArray <PlanetElementType> planetMap = CreatePlanetMap(noiseMap);

        noiseMap.Dispose();

        return(planetMap);
    }