private void Generate()
    {
        Texture2D texture = textureGenerator.GenerateTexture(resolution, frequency);

        if (noiseMapTextureRenderer)
        {
            noiseMapTextureRenderer.material.mainTexture = texture;
        }
        surfaceCreator.GenerateTerrain(texture, strength);
    }