User:PancakeIdentity/Sandbox

Sky color is calculated based on the temperature of the biome. The temperature is first divided by 3. If the resulting value is greater than 1 or less than -1, the value is set to the respective number.

F1 = 0.62222224 - (F * 0.05) F2 = 0.5 + (F * 0.1) F3 = 1

n = (F1 * 6) % 6 as an integer F7 = F1 * 6 - n F8 = F3 * (1 - F2) F9 = F3 * (1 - F7 * F2) F10 = F3 * (1 - (1 - F7) * F2)