Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/modes/paint_texture_mode.c
| Show All 34 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 "DEG_depsgraph_query.h" | #include "DEG_depsgraph_query.h" | ||||
| extern char datatoc_common_colormanagement_lib_glsl[]; | |||||
| extern char datatoc_common_globals_lib_glsl[]; | extern char datatoc_common_globals_lib_glsl[]; | ||||
| extern char datatoc_common_view_lib_glsl[]; | extern char datatoc_common_view_lib_glsl[]; | ||||
| extern char datatoc_paint_texture_vert_glsl[]; | extern char datatoc_paint_texture_vert_glsl[]; | ||||
| extern char datatoc_paint_texture_frag_glsl[]; | extern char datatoc_paint_texture_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_face_vert_glsl[]; | extern char datatoc_paint_face_vert_glsl[]; | ||||
| extern char datatoc_paint_face_selection_vert_glsl[]; | extern char datatoc_paint_face_selection_vert_glsl[]; | ||||
| ▲ Show 20 Lines • Show All 104 Lines • ▼ Show 20 Lines | if (!sh_data->fallback) { | ||||
| }); | }); | ||||
| sh_data->image = GPU_shader_create_from_arrays({ | sh_data->image = 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, | ||||
| datatoc_paint_texture_vert_glsl, | datatoc_paint_texture_vert_glsl, | ||||
| NULL}, | NULL}, | ||||
| .frag = (const char *[]){datatoc_paint_texture_frag_glsl, NULL}, | .frag = (const char *[]){datatoc_common_colormanagement_lib_glsl, | ||||
| datatoc_paint_texture_frag_glsl, | |||||
| NULL}, | |||||
| .defs = (const char *[]){sh_cfg_data->def, NULL}, | .defs = (const char *[]){sh_cfg_data->def, NULL}, | ||||
| }); | }); | ||||
| sh_data->image_mask = GPU_shader_create_from_arrays({ | sh_data->image_mask = 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, | ||||
| datatoc_paint_texture_vert_glsl, | datatoc_paint_texture_vert_glsl, | ||||
| ▲ Show 20 Lines • Show All 301 Lines • Show Last 20 Lines | |||||