Ejemplo n.º 1
0
        private void SetColor(string themeID, AtmosphereColor.ColorName name)
        {
            switch (name)
            {
            case AtmosphereColor.ColorName.MoonInnerCorona:
                MoonInnerCorona = new AtmosphereColor(themeID, name);
                break;

            case AtmosphereColor.ColorName.MoonOuterCorona:
                MoonOuterCorona = new AtmosphereColor(themeID, name);
                break;

            case AtmosphereColor.ColorName.SkyTint:
                SkyTint = new AtmosphereColor(themeID, name);
                break;

            case AtmosphereColor.ColorName.NightHorizonColor:
                NightHorizonColor = new AtmosphereColor(themeID, name);
                break;

            case AtmosphereColor.ColorName.EarlyNightZenithColor:
                EarlyNightZenithColor = new AtmosphereColor(themeID, name);
                break;

            case AtmosphereColor.ColorName.LateNightZenithColor:
                LateNightZenithColor = new AtmosphereColor(themeID, name);
                break;
            }
        }
Ejemplo n.º 2
0
 private void Initialize()
 {
     Longitude             = new AtmosphereFloat(AtmosphereFloat.FloatName.Longitude);
     Latitude              = new AtmosphereFloat(AtmosphereFloat.FloatName.Latitude);
     SunSize               = new AtmosphereFloat(AtmosphereFloat.FloatName.SunSize);
     SunAnisotropy         = new AtmosphereFloat(AtmosphereFloat.FloatName.SunAnisotropy);
     Rayleigh              = new AtmosphereFloat(AtmosphereFloat.FloatName.Rayleigh);
     Mie                   = new AtmosphereFloat(AtmosphereFloat.FloatName.Mie);
     Exposure              = new AtmosphereFloat(AtmosphereFloat.FloatName.Exposure);
     StarsIntensity        = new AtmosphereFloat(AtmosphereFloat.FloatName.StarsIntensity);
     OuterSpaceIntensity   = new AtmosphereFloat(AtmosphereFloat.FloatName.OuterSpaceIntensity);
     MoonSize              = new AtmosphereFloat(AtmosphereFloat.FloatName.MoonSize);
     MoonTexture           = new MoonTexture();
     MoonInnerCorona       = new AtmosphereColor(AtmosphereColor.ColorName.MoonInnerCorona);
     MoonOuterCorona       = new AtmosphereColor(AtmosphereColor.ColorName.MoonOuterCorona);
     SkyTint               = new AtmosphereColor(AtmosphereColor.ColorName.SkyTint);
     NightHorizonColor     = new AtmosphereColor(AtmosphereColor.ColorName.NightHorizonColor);
     EarlyNightZenithColor = new AtmosphereColor(AtmosphereColor.ColorName.EarlyNightZenithColor);
     LateNightZenithColor  = new AtmosphereColor(AtmosphereColor.ColorName.LateNightZenithColor);
 }