DRW: Armature: New bone outline shader.
authorClément Foucault <foucault.clem@gmail.com>
Sun, 22 Apr 2018 20:49:36 +0000 (22:49 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Wed, 2 May 2018 18:49:38 +0000 (20:49 +0200)
commite493a1a1aedcd6bc00f0f016aa6ef707742e3825
treee479cb1f54c0029e92446dc6b0cfc263fe1bfb56
parent77b481fd5ae2e8b503aed714ae3335ba637c84b6
DRW: Armature: New bone outline shader.

This fix the issue with the zfighting we were getting at bones edges.

Moreover, this enables us to render arbitrarly large outline with
varying thickness.
source/blender/draw/CMakeLists.txt
source/blender/draw/intern/draw_armature.c
source/blender/draw/intern/draw_common.c
source/blender/draw/intern/draw_common.h
source/blender/draw/modes/edit_armature_mode.c
source/blender/draw/modes/object_mode.c
source/blender/draw/modes/pose_mode.c
source/blender/draw/modes/shaders/armature_shape_outline_geom.glsl [new file with mode: 0644]
source/blender/draw/modes/shaders/armature_shape_outline_vert.glsl [new file with mode: 0644]