Blender  V3.3
overlay_sculpt_curves_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_curves_selection_iface, "")
6  .smooth(Type::FLOAT, "mask_weight");
7 
8 GPU_SHADER_CREATE_INFO(overlay_sculpt_curves_selection)
9  .do_static_compilation(true)
10  .push_constant(Type::BOOL, "is_point_domain")
11  .push_constant(Type::FLOAT, "selection_opacity")
12  .sampler(0, ImageType::FLOAT_BUFFER, "selection_tx")
13  .vertex_out(overlay_sculpt_curves_selection_iface)
14  .vertex_source("overlay_sculpt_curves_selection_vert.glsl")
15  .fragment_source("overlay_sculpt_curves_selection_frag.glsl")
16  .fragment_out(0, Type::VEC4, "out_color")
17  .additional_info("draw_hair", "draw_globals");
18 
19 GPU_SHADER_CREATE_INFO(overlay_sculpt_curves_selection_clipped)
20  .do_static_compilation(true)
21  .additional_info("overlay_sculpt_curves_selection", "drw_clipped");
#define GPU_SHADER_INTERFACE_INFO(_interface, _inst_name)
#define GPU_SHADER_CREATE_INFO(_info)
@ FLOAT