Blender Git Commit Log
Git Commits -> Revision 15dda01
Revision 15dda01 by Clément Foucault (master) June 22, 2020, 17:57 (GMT) |
UI: Widget: Replace geometry by fragment shader drawing This means all the antiailasing is done inside the fragment shader. We use a Signed Distance Field to draw the 2D rounded boxes. This ensure the best quality for AA. This reduce the averge Batch for widget to 16 verts instead of ~600 and reduce overshading a lot. Theme Emboss alpha and tria alpha needs to be changed after this refactor. The shadow drawing is left unchanged and still use geometry. Reviewed By: Severin Differential Revision: https://developer.blender.org/D7833 |
Commit Details:
Full Hash: 15dda0115c783805753119984decb4d9249b1f01
Parent Commit: 3cea42c
Lines Changed: +317, -482
5 Modified Paths:
/source/blender/editors/interface/interface_draw.c (+89, -63) (Diff)
/source/blender/editors/interface/interface_intern.h (+3, -2) (Diff)
/source/blender/editors/interface/interface_widgets.c (+32, -218) (Diff)
/source/blender/gpu/shaders/gpu_shader_2D_widget_base_frag.glsl (+74, -7) (Diff)
/source/blender/gpu/shaders/gpu_shader_2D_widget_base_vert.glsl (+119, -192) (Diff)
/source/blender/editors/interface/interface_intern.h (+3, -2) (Diff)
/source/blender/editors/interface/interface_widgets.c (+32, -218) (Diff)
/source/blender/gpu/shaders/gpu_shader_2D_widget_base_frag.glsl (+74, -7) (Diff)
/source/blender/gpu/shaders/gpu_shader_2D_widget_base_vert.glsl (+119, -192) (Diff)