예제 #1
0
파일: PlanetGen.cs 프로젝트: Moxcr/armage
        public static void ApplyTerrainTextures(Planet planet, TerrainTexture[] textures)
        {
            //MeshFilter filter = sphere.GetComponent<MeshFilter>();
            //Mesh mesh = filter.mesh;

            //foreach (TerrainTexture t in textures) {
                //planet.land.renderer.material = (Material) GameObject.Instantiate (planetProps.landMaterial);
            //}
        }
예제 #2
0
 public void AddTerrainTexture(TerrainTexture terrainTexture)
 {
     this.terrainTextures.Add (terrainTexture);
 }