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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user