Blender Git Loki

Git Commits -> Revision 15dd6cb

Revision 15dd6cb by Clément Foucault (tmp-widget-opti)
May 17, 2020, 00:58 (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.

Commit Details:

Full Hash: 15dd6cb66887eb83fcc3ecf44c3b42a53161e390
Parent Commit: 1aace88
Lines Changed: +316, -481

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 (+31, -217) (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)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021