title: how to slowly change the skybox color in unity 5
body: <p>I am trying to change the color or tint of my skybox so it will slowl turn to black. I have looked for a while now and I still cant find anything on this. Here is my code right now:</p>
  
  <pre><code>public class SkyboxColorChanger : MonoBehaviour 
  {
      public Color colorStart = Color.blue;
      public Color colorEnd = Color.red;
      public float duration = 1.0F;
  
      private void Update () 
      {
          float lerp = Mathf.PingPong(Time.time, duration) / duration;
          RenderSettings.skybox.SetColor("_Tint", Color.Lerp(colorStart, colorEnd, lerp));
      }
  }
  </code></pre>
  
  <p>The problems with this one are:</p>
  
  <ol>
  <li><p>in the options it appears this would only work if the sky was a solid color.</p></li>
  <li><p>when I did get it to work it changed at a very fast rate (im looking for a very long time between the changes).</p></li>
  </ol>
  
  <p>Thanks for looking!</p>