diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-03-01 20:54:58 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-03-02 03:08:32 +0300 |
commit | aa102283daf0fd7a6a59d241c0b353f3e0ecfffc (patch) | |
tree | 165681c8d3573c15c2ffef77d4d10e87a66083b9 /source/blender/draw/modes/edit_mesh_mode.c | |
parent | 043c90fdcda7631edf6464ed86041d1cf62444fc (diff) |
Edit Mode overlay: Added theme color via UBO.
Diffstat (limited to 'source/blender/draw/modes/edit_mesh_mode.c')
-rw-r--r-- | source/blender/draw/modes/edit_mesh_mode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/draw/modes/edit_mesh_mode.c b/source/blender/draw/modes/edit_mesh_mode.c index dbb65835db5..1f394870c40 100644 --- a/source/blender/draw/modes/edit_mesh_mode.c +++ b/source/blender/draw/modes/edit_mesh_mode.c @@ -47,6 +47,8 @@ static DRWShadingGroup *face_overlay_shgrp; static DRWShadingGroup *ledges_overlay_shgrp; static DRWShadingGroup *lverts_overlay_shgrp; +extern struct GPUUniformBuffer *globals_ubo; /* draw_mode_pass.c */ + void EDIT_MESH_cache_init(void) { EDIT_MESH_PassList *psl = DRW_mode_pass_list_get(); @@ -78,6 +80,7 @@ void EDIT_MESH_cache_init(void) ledges_overlay_shgrp = DRW_shgroup_create(over_edge_sh, psl->edit_face_overlay_pass); lverts_overlay_shgrp = DRW_shgroup_create(over_vert_sh, psl->edit_face_overlay_pass); DRW_shgroup_uniform_vec2(face_overlay_shgrp, "viewportSize", DRW_viewport_size_get(), 1); + DRW_shgroup_uniform_block(face_overlay_shgrp, "globalsBlock", globals_ubo, 0); DRW_shgroup_uniform_vec2(ledges_overlay_shgrp, "viewportSize", DRW_viewport_size_get(), 1); DRW_shgroup_uniform_vec2(lverts_overlay_shgrp, "viewportSize", DRW_viewport_size_get(), 1); |