protected override void UpdateTerrainData(float[,] data) { if (mat != null) { mat.mainTexture = ProceduralUtils.GenerateTexture2D(data); mat.mainTexture.filterMode = FilterMode.Point; mat.mainTexture.wrapMode = TextureWrapMode.Clamp; } }
protected override void UpdateTerrainData(float[,] data) { if (mat != null) { mat.mainTexture = ProceduralUtils.GenerateTexture2D(data); mat.mainTexture.filterMode = FilterMode.Point; mat.mainTexture.wrapMode = TextureWrapMode.Clamp; } }