#70267 Retopology Overlay #104599
|
@ -40,6 +40,7 @@ struct OVERLAY_Shaders {
|
|||
GPUShader *edit_mesh_vert;
|
||||
GPUShader *edit_mesh_edge;
|
||||
GPUShader *edit_mesh_edge_flat;
|
||||
GPUShader *edit_mesh_depth;
|
||||
GPUShader *edit_mesh_face;
|
||||
GPUShader *edit_mesh_facedot;
|
||||
GPUShader *edit_mesh_skin_root;
|
||||
|
@ -157,12 +158,12 @@ GPUShader *OVERLAY_shader_edit_mesh_depth(void)
|
|||
{
|
||||
const DRWContextState *draw_ctx = DRW_context_state_get();
|
||||
OVERLAY_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg];
|
||||
if (!sh_data->depth_only) {
|
||||
sh_data->depth_only = GPU_shader_create_from_info_name(
|
||||
if (!sh_data->edit_mesh_depth) {
|
||||
sh_data->edit_mesh_depth = GPU_shader_create_from_info_name(
|
||||
(draw_ctx->sh_cfg == GPU_SHADER_CFG_CLIPPED) ? "overlay_edit_mesh_depth_clipped" :
|
||||
"overlay_edit_mesh_depth");
|
||||
}
|
||||
return sh_data->depth_only;
|
||||
return sh_data->edit_mesh_depth;
|
||||
}
|
||||
|
||||
GPUShader *OVERLAY_shader_edit_mesh_vert(void)
|
||||
|
|
Loading…
Reference in New Issue