     if (phi_diff > 0.5) {
         phi_diff = 1.0 - phi_diff;
     }
-
     phi_diff *= 2.0;
 
     float sun_start;
-
     if (sun_x > 0) {
         sun_start = sunrise_start;
     } else {

        float percent= diff/size;
        color = (sunset_color + (high_noon_color - sunset_color) * percent);
        color = mix(color, nightblue_color, phi_diff);
        // color = vec3(phi_diff, 0,0 );

        // color = mix(vec3(1,0,0), vec3(0,1,0), phi_diff);

    // high_noon
    } else if (sun_z > high_noon_start) {
        color = high_noon_color;
        // color = vec3(phi_diff, 0,0 );

    }



}

    // night
    if (sun_z < nighttime) {
        color = nightblue_color;
    // night to sunrise OR sunset to night
    } else if (sun_z > nighttime && sun_z < sun_start) {
        float size = sun_start - nighttime;
