Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/intern/gpu_buffers.c
| Show First 20 Lines • Show All 258 Lines • ▼ Show 20 Lines | if (gpu_pbvh_vert_buf_data_set(buffers, totelem)) { | ||||
| else { | else { | ||||
| mask = 0.0f; | mask = 0.0f; | ||||
| } | } | ||||
| *(float *)GPU_vertbuf_raw_step(&msk_step) = mask; | *(float *)GPU_vertbuf_raw_step(&msk_step) = mask; | ||||
| empty_mask = empty_mask && (mask == 0.0f); | empty_mask = empty_mask && (mask == 0.0f); | ||||
| } | } | ||||
| /* Face Sets. */ | /* Face Sets. */ | ||||
| uchar face_set_color[4] = {UCHAR_MAX, UCHAR_MAX, UCHAR_MAX, UCHAR_MAX}; | |||||
| for (uint i = 0; i < buffers->face_indices_len; i++) { | for (uint i = 0; i < buffers->face_indices_len; i++) { | ||||
| uchar face_set_color[4] = {UCHAR_MAX, UCHAR_MAX, UCHAR_MAX, UCHAR_MAX}; | |||||
| if (show_face_sets) { | if (show_face_sets) { | ||||
| const MLoopTri *lt = &buffers->looptri[buffers->face_indices[i]]; | const MLoopTri *lt = &buffers->looptri[buffers->face_indices[i]]; | ||||
| const int fset = abs(sculpt_face_sets[lt->poly]); | const int fset = abs(sculpt_face_sets[lt->poly]); | ||||
| /* Skip for the default color Face Set to render it white. */ | /* Skip for the default color Face Set to render it white. */ | ||||
| if (fset != face_sets_color_default) { | if (fset != face_sets_color_default) { | ||||
| face_set_overlay_color_get(fset, face_sets_color_seed, face_set_color); | face_set_overlay_color_get(fset, face_sets_color_seed, face_set_color); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 897 Lines • Show Last 20 Lines | |||||