fix line antialiasing adjustment bug

fix #2189

This puts an upper limit on how much lines can be blurred because of
their y position. It's a hacky fix but the entire way lines are
antialiased in perspective view is hacky.
This commit is contained in:
Ansis Brammanis
2015-08-27 16:49:35 -04:00
parent e56ed2966f
commit 294b307cb3

View File

@@ -49,7 +49,7 @@ void main() {
float squish_scale = length(a_extrude) / length(u_antialiasingmatrix * a_extrude);
// how much features are squished in all directions by the perspectiveness
float perspective_scale = 1.0 / (1.0 - y * u_extra);
float perspective_scale = 1.0 / (1.0 - min(y * u_extra, 0.90));
v_gamma_scale = perspective_scale * squish_scale;
}