Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/modes/paint_vertex_mode.c
| Show All 27 Lines | |||||
| #include "draw_common.h" | #include "draw_common.h" | ||||
| #include "draw_mode_engines.h" | #include "draw_mode_engines.h" | ||||
| #include "DNA_mesh_types.h" | #include "DNA_mesh_types.h" | ||||
| #include "DNA_view3d_types.h" | #include "DNA_view3d_types.h" | ||||
| #include "DEG_depsgraph_query.h" | #include "DEG_depsgraph_query.h" | ||||
| extern char datatoc_paint_face_vert_glsl[]; | extern char datatoc_paint_face_selection_vert_glsl[]; | ||||
| extern char datatoc_paint_weight_vert_glsl[]; | extern char datatoc_paint_weight_vert_glsl[]; | ||||
| extern char datatoc_paint_weight_frag_glsl[]; | extern char datatoc_paint_weight_frag_glsl[]; | ||||
| extern char datatoc_paint_vertex_vert_glsl[]; | extern char datatoc_paint_vertex_vert_glsl[]; | ||||
| extern char datatoc_paint_vertex_frag_glsl[]; | extern char datatoc_paint_vertex_frag_glsl[]; | ||||
| extern char datatoc_paint_wire_vert_glsl[]; | extern char datatoc_paint_wire_vert_glsl[]; | ||||
| extern char datatoc_paint_wire_frag_glsl[]; | extern char datatoc_paint_wire_frag_glsl[]; | ||||
| extern char datatoc_paint_vert_frag_glsl[]; | extern char datatoc_paint_vert_frag_glsl[]; | ||||
| extern char datatoc_common_globals_lib_glsl[]; | extern char datatoc_common_globals_lib_glsl[]; | ||||
| ▲ Show 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | sh_data->by_mode[WEIGHT_MODE].color_face = GPU_shader_create_from_arrays({ | ||||
| datatoc_paint_weight_frag_glsl, | datatoc_paint_weight_frag_glsl, | ||||
| NULL}, | NULL}, | ||||
| .defs = (const char *[]){sh_cfg_data->def, NULL}, | .defs = (const char *[]){sh_cfg_data->def, NULL}, | ||||
| }); | }); | ||||
| sh_data->face_select_overlay = GPU_shader_create_from_arrays({ | sh_data->face_select_overlay = GPU_shader_create_from_arrays({ | ||||
| .vert = (const char *[]){sh_cfg_data->lib, | .vert = (const char *[]){sh_cfg_data->lib, | ||||
| datatoc_common_view_lib_glsl, | datatoc_common_view_lib_glsl, | ||||
| datatoc_paint_face_vert_glsl, | datatoc_paint_face_selection_vert_glsl, | ||||
| NULL}, | NULL}, | ||||
| .frag = (const char *[]){datatoc_gpu_shader_uniform_color_frag_glsl, NULL}, | .frag = (const char *[]){datatoc_gpu_shader_uniform_color_frag_glsl, NULL}, | ||||
| .defs = (const char *[]){sh_cfg_data->def, NULL}, | .defs = (const char *[]){sh_cfg_data->def, NULL}, | ||||
| }); | }); | ||||
| sh_data->vert_select_overlay = GPU_shader_create_from_arrays({ | sh_data->vert_select_overlay = GPU_shader_create_from_arrays({ | ||||
| .vert = (const char *[]){sh_cfg_data->lib, | .vert = (const char *[]){sh_cfg_data->lib, | ||||
| datatoc_common_globals_lib_glsl, | datatoc_common_globals_lib_glsl, | ||||
| datatoc_common_view_lib_glsl, | datatoc_common_view_lib_glsl, | ||||
| ▲ Show 20 Lines • Show All 233 Lines • Show Last 20 Lines | |||||