Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/uvedit/uvedit_draw.c
| Show First 20 Lines • Show All 460 Lines • ▼ Show 20 Lines | if (batch->verts) { | ||||
| GPU_batch_uniform_4fv(batch->verts, "selectColor", col2); | GPU_batch_uniform_4fv(batch->verts, "selectColor", col2); | ||||
| GPU_batch_draw(batch->verts); | GPU_batch_draw(batch->verts); | ||||
| GPU_blend(false); | GPU_blend(false); | ||||
| GPU_program_point_size(false); | GPU_program_point_size(false); | ||||
| } | } | ||||
| if (batch->facedots) { | if (batch->facedots) { | ||||
| const float point_size = UI_GetThemeValuef(TH_FACEDOT_SIZE); | const float point_size = UI_GetThemeValuef(TH_FACEDOT_SIZE); | ||||
| GPU_point_size(point_size); | GPU_program_point_size(true); | ||||
| UI_GetThemeColor4fv(TH_WIRE, col1); | UI_GetThemeColor4fv(TH_WIRE, col1); | ||||
| GPU_batch_program_set_builtin(batch->facedots, GPU_SHADER_2D_UV_FACEDOTS); | GPU_batch_program_set_builtin(batch->facedots, GPU_SHADER_2D_UV_FACEDOTS); | ||||
| GPU_batch_uniform_4fv(batch->facedots, "vertColor", col1); | GPU_batch_uniform_4fv(batch->facedots, "vertColor", col1); | ||||
| GPU_batch_uniform_4fv(batch->facedots, "selectColor", col2); | GPU_batch_uniform_4fv(batch->facedots, "selectColor", col2); | ||||
| GPU_batch_uniform_1f(batch->facedots, "pointSize", point_size); | |||||
| GPU_batch_draw(batch->facedots); | GPU_batch_draw(batch->facedots); | ||||
| GPU_program_point_size(false); | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| static void draw_uv_shadows_get( | static void draw_uv_shadows_get( | ||||
| SpaceImage *sima, Object *ob, Object *obedit, bool *show_shadow, bool *show_texpaint) | SpaceImage *sima, Object *ob, Object *obedit, bool *show_shadow, bool *show_texpaint) | ||||
| { | { | ||||
| *show_shadow = *show_texpaint = false; | *show_shadow = *show_texpaint = false; | ||||
| ▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines | |||||