Edit Mesh: Add workaround for system that does not support wide lines
authorClément Foucault <foucault.clem@gmail.com>
Mon, 4 Feb 2019 21:28:39 +0000 (22:28 +0100)
committerClément Foucault <foucault.clem@gmail.com>
Tue, 5 Feb 2019 14:02:15 +0000 (15:02 +0100)
commit773f3428cfc5212641c59536f56179a58acf318a
treee51550f7ec5cccc86fed37303e38acddcdce999c
parenta131514d0f79f7b82be526438c125e35beab9f8f
Edit Mesh: Add workaround for system that does not support wide lines

This adds a new geometry shader (specific to edit mesh for now) that
reproduces the effect of glLineWidth > 1.0, since this is not supported on
all platform.

This fix could be generalized to other shaders later.
source/blender/draw/CMakeLists.txt
source/blender/draw/modes/edit_mesh_mode.c
source/blender/draw/modes/shaders/edit_mesh_overlay_geom.glsl [new file with mode: 0644]
source/blender/draw/modes/shaders/edit_mesh_overlay_vert.glsl