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:
authorCampbell Barton <ideasman42@gmail.com>2019-07-18 13:11:18 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-07-18 13:11:18 +0300
commit5c8b1a126698359e4a211375f227838c811df8b9 (patch)
treeb7a2853e7d81fbb4dbe53bf9cf248aeca844f4d4
parentc6c9e168e272a0fe31b9a6f8704adb067fb9f88f (diff)
Fix edit-mode particle vertex draw size
Vertices were hard to see, draw the same size as edit-mesh vertices.
-rw-r--r--source/blender/draw/modes/shaders/particle_strand_vert.glsl7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/draw/modes/shaders/particle_strand_vert.glsl b/source/blender/draw/modes/shaders/particle_strand_vert.glsl
index c3f8fb89c17..45fadb4ed5e 100644
--- a/source/blender/draw/modes/shaders/particle_strand_vert.glsl
+++ b/source/blender/draw/modes/shaders/particle_strand_vert.glsl
@@ -55,16 +55,17 @@ void main()
#endif
#ifdef USE_POINTS
- gl_PointSize = sizeVertex;
+ float size = sizeVertex * 2.0;
+ gl_PointSize = size;
/* calculate concentric radii in pixels */
- float radius = 0.5 * sizeVertex;
+ float radius = sizeVertex;
/* start at the outside and progress toward the center */
radii[0] = radius;
radii[1] = radius - 1.0;
/* convert to PointCoord units */
- radii /= sizeVertex;
+ radii /= size;
#endif
}