Blender  V3.3
overlay_sculpt_info.hh
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
4 
5 GPU_SHADER_INTERFACE_INFO(overlay_sculpt_mask_iface, "")
6  .flat(Type::VEC3, "faceset_color")
7  .smooth(Type::FLOAT, "mask_color")
8  .smooth(Type::VEC4, "finalColor");
9 
10 GPU_SHADER_CREATE_INFO(overlay_sculpt_mask)
11  .do_static_compilation(true)
12  .push_constant(Type::FLOAT, "maskOpacity")
13  .push_constant(Type::FLOAT, "faceSetsOpacity")
14  .vertex_in(0, Type::VEC3, "pos")
15  .vertex_in(1, Type::VEC3, "fset")
16  .vertex_in(2, Type::FLOAT, "msk")
17  .vertex_out(overlay_sculpt_mask_iface)
18  .vertex_source("overlay_sculpt_mask_vert.glsl")
19  .fragment_source("overlay_sculpt_mask_frag.glsl")
20  .fragment_out(0, Type::VEC4, "fragColor")
21  .additional_info("draw_mesh", "draw_object_infos", "draw_globals");
22 
23 GPU_SHADER_CREATE_INFO(overlay_sculpt_mask_clipped)
24  .do_static_compilation(true)
25  .additional_info("overlay_sculpt_mask", "drw_clipped");
#define GPU_SHADER_INTERFACE_INFO(_interface, _inst_name)
#define GPU_SHADER_CREATE_INFO(_info)
@ FLOAT