fix some errors

This commit is contained in:
2026-03-27 09:02:15 +01:00
parent a6a48db1bf
commit 052f200c5d

View File

@@ -50,12 +50,11 @@ vec3 hash3(float seed) {
return fract((p.xxy + p.yzz) * p.zyx);
}
void sky() {
float sky_v = clamp(EYEDIR.y, 0.0, 1.0);
vec3 final_sky = mix(sky_horizon_color, sky_top_color, sky_v);
if (night_intensity > 0.05) {
if (night_intensity > 0.8) {
//Fixed Start
vec3 star_pos = EYEDIR * star_density;
@@ -90,10 +89,9 @@ void sky() {
vec3 flight_axis = tangent * c - bitangent * s;
vec3 side_axis = tangent * s + bitangent * c;
if (flight_axis.y > 0.0) {
flight_axis = -flight_axis;
side_axis = -side_axis;
}
flight_axis.y *= 0.15;
flight_axis = normalize(flight_axis);
side_axis = normalize(cross(flight_axis, center));
float proj_x = dot(EYEDIR, side_axis);
float proj_y = dot(EYEDIR, flight_axis);