Edit Mesh: Simplify the overlay shader.
authorClément Foucault <foucault.clem@gmail.com>
Sat, 16 Jun 2018 13:15:37 +0000 (15:15 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Sat, 16 Jun 2018 13:49:16 +0000 (15:49 +0200)
commitce80e00a7c68fb1c77232f94f620fcf6e7c13107
tree896e0d0778334443c7e61d235ecd93457fde234c
parentd45d0943784773edd23418da0daaec228f58f32e
Edit Mesh: Simplify the overlay shader.

Remove all the clip cases and just pass the vertices screen position to the
fragment shader.

This does put a bit more pressure on the fragment shader but it seems to be
faster than before. And it simplify the code a lot.

It seems to fix some long standing issue on some intel GPU.
source/blender/draw/modes/shaders/edit_mesh_overlay_frag.glsl
source/blender/draw/modes/shaders/edit_mesh_overlay_geom_edge.glsl
source/blender/draw/modes/shaders/edit_mesh_overlay_geom_tri.glsl
source/blender/draw/modes/shaders/edit_mesh_overlay_loosevert_vert.glsl