void Start() { WGS84Transform.GeodeticToECEF(90, 0, 0, out double northX, out double northZ, out double northY); WGS84Transform.GeodeticToECEF(-90, 0, 0, out double southX, out double southZ, out double southY); northPole = new Vector3((float)northX * Scale, (float)northY * Scale, (float)northZ * Scale); southPole = new Vector3((float)southX * Scale, (float)southY * Scale, (float)southZ * Scale); GeocellTexture = new GeocellTexture(); Model.GetComponent <MeshRenderer>().material.SetTexture("_SelectionTex", GeocellTexture.Texture); }
private void Start() { GeocellTexture = new GeocellTexture(); Model.GetComponent <MeshRenderer>().material.SetTexture("_SelectionTex", GeocellTexture.Texture); modelMesh = Model.GetComponent <MeshFilter>(); }