Example #1
0
 public void CopyFrom(ConfigCloudStyle other)
 {
     if (other != null)
     {
         this.BrightColor             = other.BrightColor;
         this.DarkColor               = other.DarkColor;
         this.SecondDarkColor         = other.SecondDarkColor;
         this.RimColor                = other.RimColor;
         this.FlashColor              = other.FlashColor;
         this.FlashAttenuationFactors = other.FlashAttenuationFactors;
     }
 }
Example #2
0
 public static ConfigCloudStyle Lerp(ConfigCloudStyle config1, ConfigCloudStyle config2, float t)
 {
     return(new ConfigCloudStyle {
         BrightColor = Color.Lerp(config1.BrightColor, config2.BrightColor, t), DarkColor = Color.Lerp(config1.DarkColor, config2.DarkColor, t), SecondDarkColor = Color.Lerp(config1.SecondDarkColor, config2.SecondDarkColor, t), RimColor = Color.Lerp(config1.RimColor, config2.RimColor, t), FlashColor = Color.Lerp(config1.FlashColor, config2.FlashColor, t), FlashAttenuationFactors = Vector3.Lerp(config1.FlashAttenuationFactors, config2.FlashAttenuationFactors, t)
     });
 }
Example #3
0
        public static ConfigAtmosphere Lerp(ConfigAtmosphere config1, ConfigAtmosphere config2, float t)
        {
            ConfigAtmosphere atmosphere;

            return(new ConfigAtmosphere {
                FrameTime = Mathf.Lerp(config1.FrameTime, config2.FrameTime, t), Name = atmosphere.FrameTime.ToString(), CloudStyle = ConfigCloudStyle.Lerp(config1.CloudStyle, config2.CloudStyle, t), Background = ConfigBackground.Lerp(config1.Background, config2.Background, t), Indoor = ConfigIndoor.Lerp(config1.Indoor, config2.Indoor, t)
            });
        }