919293949596979899100101
weightedSun = dawnColor; } else { float dawnWeight = y / sunSize; weightedSun = sunColor.mul(dawnWeight).add(dawnColor.mul(1 - dawnWeight)); } skyColor = weightedSun.mul(sunWeight).add(moonColor.mul((1 - sunWeight))); } else { if (y < 0) { sunWeight = 0; skyColor = moonColor; } else {