▶ Map Display
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MapDisplay : MonoBehaviour {
public Renderer textureRender;
public void DrawTexture(Texture2D texture) {
textureRender.sharedMaterial.mainTexture = texture;
textureRender.transform.localScale = new Vector3 (texture.width, 1, texture.height);
}
}
* 참고
Procedure Landmass Generation (E04 Colours)
https://www.youtube.com/watch?v=RDQK1_SWFuc&list=PLFt_AvWsXl0eBW2EiBtl_sxmDtSgZBxB3&index=4