private void Start() { _StepSize = 1 / Resolution; _MapData.FuckYou(); _MapData.GenerateRandomPoints(6); _Texture = new Texture2D((int)Resolution, (int)Resolution, TextureFormat.RGB24, true); _Texture.name = "MapGen Visualize Texture"; GetComponent <MeshRenderer>().material.mainTexture = _Texture; FillTexture(); _Texture.filterMode = FilterMode.Point; _Texture.wrapMode = TextureWrapMode.Clamp; }