diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-09-22 01:40:31 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-09-22 03:44:40 +0300 |
commit | 02cd48a087d3aa21b210c70d34a610685c62dba0 (patch) | |
tree | 9594957b6a14787b2043b43b88dd3fa285747c03 /source/blender/draw/modes/shaders | |
parent | 4bfa3f4f9ba13d49409e64d71d6894a3be12cf16 (diff) |
Edit Mode : Bias Face dot position
Diffstat (limited to 'source/blender/draw/modes/shaders')
-rw-r--r-- | source/blender/draw/modes/shaders/edit_mesh_overlay_facedot_vert.glsl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/draw/modes/shaders/edit_mesh_overlay_facedot_vert.glsl b/source/blender/draw/modes/shaders/edit_mesh_overlay_facedot_vert.glsl index 2e541fa75e6..3e6f0ead04c 100644 --- a/source/blender/draw/modes/shaders/edit_mesh_overlay_facedot_vert.glsl +++ b/source/blender/draw/modes/shaders/edit_mesh_overlay_facedot_vert.glsl @@ -9,6 +9,8 @@ flat out int isSelected; void main() { gl_Position = ModelViewProjectionMatrix * vec4(pos, 1.0); + /* Bias Facedot Z position in clipspace. */ + gl_Position.z -= 0.0002; gl_PointSize = sizeFaceDot; isSelected = int(norAndFlag.w); } |