public void Apply()
 {
     celestialBody = Tools.GetCelestialBody(body);
     scaledCelestialTransform = Tools.GetScaledTransform(body);
     
     GameObject go = new GameObject();
     atmospherePQS = go.AddComponent<AtmospherePQS>();
     atmosphere = new AtmosphereVolume(atmosphereMaterial);
     atmospherePQS.Apply(body, atmosphere, altitude);
 }
Пример #2
0
        public void Apply()
        {
            celestialBody            = Tools.GetCelestialBody(body);
            scaledCelestialTransform = Tools.GetScaledTransform(body);

            GameObject go = new GameObject("AtmosphereObject");

            atmospherePQS = go.AddComponent <AtmospherePQS>();
            atmosphere    = new AtmosphereVolume(atmosphereMaterial);
            atmospherePQS.Apply(body, atmosphere, altitude);
        }