The International Simutrans Forum

Development => Technical Documentation => Topic started by: Eusebio Ptolomeu on November 07, 2017, 10:41:38 PM

Title: Day and Night in Pak128
Post by: Eusebio Ptolomeu on November 07, 2017, 10:41:38 PM
  In pak128, the transition between night and day is pretty straightforward, it seems that only the brightness of the color is reduced. Is there a way to tweak this, to make it more life-like, like an orange sunset/sunrise?
Title: Re: Day and Night in Pak128
Post by: gauthier on November 08, 2017, 05:46:56 PM
It's not specific to pak128, this is a code-related issue. No way I can change this a pakset maintainer, you should make an extension request about it.
Title: Re: Day and Night in Pak128
Post by: prissi on November 09, 2017, 01:54:35 PM
In principle yes. In practice you will run quickly in ugly color, sicne you only have 5 bits to work with. But it is very easi\y, you find the routined in simgraph16.cc. I have no compiler right now, but the routines are quite in the first quarter of the file. Look for "nightshift".