Example #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;
            }
        }
Example #2
0
        private bool LoadFloat(AtmosphereFloat.FloatName name)
        {
            switch (name)
            {
            case AtmosphereFloat.FloatName.Longitude:
                return(Longitude.Load());

            case AtmosphereFloat.FloatName.Latitude:
                return(Latitude.Load());

            case AtmosphereFloat.FloatName.SunSize:
                return(SunSize.Load());

            case AtmosphereFloat.FloatName.SunAnisotropy:
                return(SunAnisotropy.Load());

            case AtmosphereFloat.FloatName.MoonSize:
                return(MoonSize.Load());

            case AtmosphereFloat.FloatName.Rayleigh:
                return(Rayleigh.Load());

            case AtmosphereFloat.FloatName.Mie:
                return(Mie.Load());

            case AtmosphereFloat.FloatName.Exposure:
                return(Exposure.Load());

            case AtmosphereFloat.FloatName.StarsIntensity:
                return(StarsIntensity.Load());

            case AtmosphereFloat.FloatName.OuterSpaceIntensity:
                return(OuterSpaceIntensity.Load());

            default: return(false);
            }
        }