Image Editor Vectorscope Improvement #116974

Merged
Aras Pranckevicius merged 13 commits from JonasDichelle/blender:vectorscope-update into main 2024-02-06 12:22:57 +01:00
1 changed files with 4 additions and 1 deletions
Showing only changes of commit 4be5c04f5f - Show all commits

View File

@ -989,6 +989,7 @@ void ui_draw_but_VECTORSCOPE(ARegion * /*region*/,
const float alpha = scopes->vecscope_alpha;
GPU_line_smooth(true);
GPU_blend(GPU_BLEND_ALPHA);
float color[4];
@ -1055,11 +1056,13 @@ void ui_draw_but_VECTORSCOPE(ARegion * /*region*/,
circle_vertex_colors[i * 4] = r;
circle_vertex_colors[i * 4 + 1] = g;
circle_vertex_colors[i * 4 + 2] = b;
circle_vertex_colors[i * 4 + 3] = 0.7f;
circle_vertex_colors[i * 4 + 3] = 0.8f;
}
GPU_blend(GPU_BLEND_ALPHA);
GPU_line_width(2.5f);
circle_draw_rgb(circle_points, tot_points, circle_vertex_colors);
GPU_line_width(1.0f);
/* inner circles */
for (int j = 0; j < 5; j++) {