Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2019-04-30 18:49:28 +0300
committerAntonioya <blendergit@gmail.com>2019-04-30 18:49:28 +0300
commit2fd6e855a53467bc10a9c1c1203fd1da20716ae3 (patch)
tree55b34af26197db9c2f2f3ee96b85b5f5889ce479
parent9a4fd6da0f3a6a27780ad868b0d0109ebfff0c8d (diff)
GPencil: Small tweak to Dot minimum thickness
This was changed in a previous commit to 1.0, but a value of 0.5 works better.
-rw-r--r--source/blender/draw/engines/gpencil/shaders/gpencil_point_vert.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/gpencil/shaders/gpencil_point_vert.glsl b/source/blender/draw/engines/gpencil/shaders/gpencil_point_vert.glsl
index 9fc657a37a7..9cef7601770 100644
--- a/source/blender/draw/engines/gpencil/shaders/gpencil_point_vert.glsl
+++ b/source/blender/draw/engines/gpencil/shaders/gpencil_point_vert.glsl
@@ -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, 1.0); /* minimum 1 pixel */
+ finalThickness = max(size * objscale, 0.5); /* set a minimum size */
}
/* for wireframe override size and color */