[Bf-blender-cvs] [4e168e0036e] blender2.8: Edit Mesh: Fix and increase the depth bias on vertices

Clément Foucault noreply at git.blender.org
Sat Oct 13 23:55:39 CEST 2018


Commit: 4e168e0036e55e5538f86b52d11965630302a9df
Author: Clément Foucault
Date:   Sat Oct 13 16:49:03 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB4e168e0036e55e5538f86b52d11965630302a9df

Edit Mesh: Fix and increase the depth bias on vertices

===================================================================

M	source/blender/draw/modes/shaders/edit_mesh_overlay_points_vert.glsl

===================================================================

diff --git a/source/blender/draw/modes/shaders/edit_mesh_overlay_points_vert.glsl b/source/blender/draw/modes/shaders/edit_mesh_overlay_points_vert.glsl
index 484a017e171..cf7d103a86b 100644
--- a/source/blender/draw/modes/shaders/edit_mesh_overlay_points_vert.glsl
+++ b/source/blender/draw/modes/shaders/edit_mesh_overlay_points_vert.glsl
@@ -3,7 +3,7 @@ uniform mat3 NormalMatrix;
 uniform mat4 ProjectionMatrix;
 uniform mat4 ModelViewMatrix;
 uniform mat4 ModelViewProjectionMatrix;
-uniform float ofs = 5e-5;
+uniform float ofs = 1e-3;
 
 in vec3 pos;
 in ivec4 data;
@@ -21,7 +21,7 @@ void main()
 
 	gl_PointSize = sizeVertex * 2.0;
 	gl_Position = ModelViewProjectionMatrix * vec4(pos, 1.0);
-	gl_Position -= ofs;
+	gl_Position.z -= ofs;
 
 #ifdef VERTEX_FACING
 	vec4 vPos = ModelViewMatrix * vec4(pos, 1.0);



More information about the Bf-blender-cvs mailing list