UI: Perf: Port color widgets to batch.

This is more for completeness than perf.

Shader is tiny bit more complex but we get less overdraw and drawcalls.
This commit is contained in:
2018-04-06 23:54:24 +02:00
parent 3e998b8860
commit 2d618974d1
6 changed files with 71 additions and 57 deletions

View File

@@ -712,7 +712,7 @@ typedef struct uiWidgetBaseParameters {
float color_tria[4];
float tria1_center[2], tria2_center[2];
float tria1_size, tria2_size;
float shade_dir, clamp;
float shade_dir, do_alpha_check;
} uiWidgetBaseParameters;
enum {