public void update(long delta){
		if(Brighten){
			Time += iterator * ((float)delta / 100.0f);
		}else{
			Time -= iterator * ((float)delta / 100.0f);
		}
		if(Time > maxTime && Brighten){
			Brighten = false;
			
		}
		if(Time < minTime && !Brighten){
			Brighten = true;
		}
		
		if(Time < -0.5f && Day == true){
			Day = false;
			Night = true;
			System.out.println("night");
			toNight();
		}
		if(Time > -0.5f && Day == false){
			Day = true;
			Night = false;
			System.out.println("day");
			toDay();
		}
		
		Brightness = ((Time * 4) + 7)/ 2;
		
		FogColor = (Time + 1) / 2;
	}