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); }
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); }