T63854: Grease Pencil strokes appear too thick in the viewport when using texture mode

There was an arbitrary size limit of 4 pixels.
This commit is contained in:
Antonioya
2019-04-30 11:59:36 +02:00
parent 7a0b3f927c
commit 56fd032393

View File

@@ -42,7 +42,7 @@ void main()
else {
float size = (ProjectionMatrix[3][3] == 0.0) ? (thickness / (gl_Position.z * defaultpixsize)) :
(thickness / defaultpixsize);
finalThickness = max(size * objscale, 4.0); /* minimum 4 pixels */
finalThickness = max(size * objscale, 1.0); /* minimum 1 pixel */
}
/* for wireframe override size and color */