private void initializeMoonShader() { moonShader = new TimedShader ( new TimedColor[] { new TimedColor(Time.EndNightValue, Color.White), new TimedColor(Time.StartDayValue, Color.Transparent), new TimedColor(Time.EndDayValue, Color.Transparent), new TimedColor(Time.StartNightValue, Color.White) } ); }
private void initializeSunShader() { sunShader = new TimedShader ( new TimedColor[] { new TimedColor(Time.EndNightValue, NightColor), new TimedColor(Time.SunriseValue, SunriseColor), new TimedColor(Time.StartDayValue, DayColor), new TimedColor(Time.EndDayValue, DayColor), new TimedColor(Time.SunsetValue, SunsetColor), new TimedColor(Time.StartNightValue, NightColor) } ); }
private void initializeAmbientalLightShader() { ambientalLightShader = new TimedShader ( new TimedColor[] { new TimedColor(Time.EndNightValue, Sky.NightColors[2]), new TimedColor(Time.SunriseValue, Sky.SunriseColors[2]), new TimedColor(Time.StartDayValue, new Color(191, 191, 191)), new TimedColor(Time.EndDayValue, new Color(191, 191, 191)), new TimedColor(Time.SunsetValue, Sky.SunsetColors[1]), new TimedColor(Time.StartNightValue, Sky.NightColors[2]) } ); }