Stopped stars appearing in the day

This commit is contained in:
Joshua Barretto 2019-08-04 15:30:45 +01:00
parent 3de68e915a
commit e5bcc8912e

View File

@ -97,12 +97,12 @@ vec3 get_sky_color(vec3 dir, float time_of_day) {
vec3 sky_top = mix(
mix(
SKY_DUSK_TOP,
SKY_NIGHT_TOP,
SKY_NIGHT_TOP + star,
max(sun_dir.z, 0)
),
SKY_DAY_TOP,
max(-sun_dir.z, 0)
) + star;
);
vec3 sky_mid = mix(
mix(