//this is a test public void AddAtmosphere() { HasAtmosphere = true; atmosphere = new Atmosphere(this.radius * 1.05f, this.radius); SystemCore.GameObjectManager.AddAndInitialiseGameObject(atmosphere); atmosphericScatteringHelper = new GroundScatteringHelper(this.testEffect, radius * 1.05f, radius); }
private void GenerateAtmosphereAndGeometry(float innerAtmosphereRatio, float outerAtmosphereRatio, float atmosphericScale, float groundScale) { planetEffect = EffectLoader.LoadSM5Effect("AtmosphericScatteringGround").Clone(); groundScatteringHelper = new GroundScatteringHelper(planetEffect, planetRadius * outerAtmosphereRatio, planetRadius * innerAtmosphereRatio, groundScale); atmosphere = new Atmosphere(planetRadius * outerAtmosphereRatio, planetRadius * innerAtmosphereRatio, atmosphericScale); SystemCore.GameObjectManager.AddAndInitialiseGameObject(atmosphere); GenerateGeometry(); }