So i made a day/night cycle script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TimeScript : MonoBehaviour {
private void Update()
{
transform.Rotate (Vector3.right, 1.0f);
}
}
Very simple, the directional light rotates.
But when it points straight up, the scene becomes completely dark and it shouldn’t
Screenshots: Day: Imgur: The magic of the Internet
Night: Imgur: The magic of the Internet
Help