Armature: Fix flickering outline on planar custom bones.
authorClément Foucault <foucault.clem@gmail.com>
Thu, 7 Jun 2018 11:38:10 +0000 (13:38 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Thu, 7 Jun 2018 11:38:17 +0000 (13:38 +0200)
source/blender/draw/modes/shaders/armature_shape_outline_geom.glsl

index 11924b19cf87ec0276bd8445b64ecc0447efb1ca..4d6f3e94693143578e25b147e34d433601368122 100644 (file)
@@ -69,7 +69,7 @@ void main(void)
                return;
 
        /* Don't outline if concave edge. */
-       if (dot(n0, v13) > 0.0)
+       if (dot(n0, v13) > 0.0001)
                return;
 
        vec2 thick = vColSize[0].w * (lineThickness / viewportSize);