Wireframe Overlay: Use Barycentric coord to optimize shader
authorClément Foucault <foucault.clem@gmail.com>
Thu, 11 Oct 2018 14:10:07 +0000 (16:10 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Fri, 12 Oct 2018 14:38:55 +0000 (16:38 +0200)
commitfe4840ed4d7bc002586c5f11d04558edfdf996fe
treea2c5d05d7d7973abe5fc26cff5cd41ab802f5067
parent01745051de735c37a2d817c1a58fda4585b77698
Wireframe Overlay: Use Barycentric coord to optimize shader

This also fix a driver bug I was having on Linux + Mesa + AMD Vega.
source/blender/draw/modes/shaders/overlay_face_wireframe_frag.glsl
source/blender/draw/modes/shaders/overlay_face_wireframe_geom.glsl
source/blender/draw/modes/shaders/overlay_face_wireframe_vert.glsl