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