Exemplo n.º 1
0
        private void SetFloat(string themeID, AtmosphereFloat.FloatName name)
        {
            switch (name)
            {
            case AtmosphereFloat.FloatName.Longitude:
                Longitude = new AtmosphereFloat(themeID, name);
                break;

            case AtmosphereFloat.FloatName.Latitude:
                Latitude = new AtmosphereFloat(themeID, name);
                break;

            case AtmosphereFloat.FloatName.SunSize:
                SunSize = new AtmosphereFloat(themeID, name);
                break;

            case AtmosphereFloat.FloatName.SunAnisotropy:
                SunAnisotropy = new AtmosphereFloat(themeID, name);
                break;

            case AtmosphereFloat.FloatName.MoonSize:
                MoonSize = new AtmosphereFloat(themeID, name);
                break;

            case AtmosphereFloat.FloatName.Rayleigh:
                Rayleigh = new AtmosphereFloat(themeID, name);
                break;

            case AtmosphereFloat.FloatName.Mie:
                Mie = new AtmosphereFloat(themeID, name);
                break;

            case AtmosphereFloat.FloatName.Exposure:
                Exposure = new AtmosphereFloat(themeID, name);
                break;

            case AtmosphereFloat.FloatName.StarsIntensity:
                StarsIntensity = new AtmosphereFloat(themeID, name);
                break;

            case AtmosphereFloat.FloatName.OuterSpaceIntensity:
                OuterSpaceIntensity = new AtmosphereFloat(themeID, name);
                break;
            }
        }
Exemplo 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);
 }