smoothstep for the horizon
[vrfileman] / sdr / skydome.p.glsl
index 62a3475..d774adc 100644 (file)
@@ -14,7 +14,7 @@ void main()
        vec3 color = sky_grad(ty, mid_point);
 
        float horiz = ty + fbm(tx * horiz_scale, 4, horiz_scale) * 0.035;
-       color = mix(fog_color, color, step(0.035, horiz));
+       color = mix(fog_color, color, smoothstep(0.034, 0.035, horiz));
 
        gl_FragColor.rgb = color;
        gl_FragColor.a = 1.0;