Search Unity

Turning Direction Light off at rotation point.

Discussion in 'Scripting' started by Camsedin, Feb 15, 2014.

  1. Camsedin

    Camsedin

    Joined:
    Feb 15, 2014
    Posts:
    16
    Hi guys.

    complete newb when it comes to c# coding. so bare with me.

    Been messing about with a day night cycle.I have a directional light rotating and i noticed you can only have 1 directional light giving off shadows.

    so i am trying to turn the "sun" light off when it goes below land and turn on a "moon" light as it comes up.


    Any tips on how to do this?


    Cheers.
     
  2. jister

    jister

    Joined:
    Oct 9, 2009
    Posts:
    1,698
  3. Camsedin

    Camsedin

    Joined:
    Feb 15, 2014
    Posts:
    16
    Thanks mate not sure how i missed that one.
     
unityunity