Differential D15219 Diff 53351 source/blender/draw/engines/overlay/shaders/infos/overlay_sculpt_curves_info.hh
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/overlay/shaders/infos/overlay_sculpt_curves_info.hh
- This file was added.
| /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||||||||||
| #include "gpu_shader_create_info.hh" | ||||||||||
| GPU_SHADER_INTERFACE_INFO(overlay_sculpt_curves_selection_iface, "") | ||||||||||
| .smooth(Type::FLOAT, "mask_weight"); | ||||||||||
| GPU_SHADER_CREATE_INFO(overlay_sculpt_curves_selection) | ||||||||||
| .do_static_compilation(true) | ||||||||||
| .push_constant(Type::BOOL, "is_point_domain") | ||||||||||
| .push_constant(Type::FLOAT, "selection_opacity") | ||||||||||
| .sampler(0, ImageType::FLOAT_BUFFER, "selection_tx") | ||||||||||
| .vertex_out(overlay_sculpt_curves_selection_iface) | ||||||||||
fclem: no need for a vertex input. | ||||||||||
| .vertex_source("overlay_sculpt_curves_selection_vert.glsl") | ||||||||||
| .fragment_source("overlay_sculpt_curves_selection_frag.glsl") | ||||||||||
| .fragment_out(0, Type::VEC4, "out_color") | ||||||||||
| .additional_info("draw_hair", "draw_globals"); | ||||||||||
Done Inline ActionsThis is going to be written in a document at some point, but use out_color for color output, and _tx suffix for texture resources (i.e: selection_tx) fclem: This is going to be written in a document at some point, but use `out_color` for color output… | ||||||||||
| GPU_SHADER_CREATE_INFO(overlay_sculpt_curves_selection_clipped) | ||||||||||
Done Inline Actions
Use draw_hair. You do not need vertex_ins and draw_object_infos is only if you need object color which I assume don't need for sculpt selection. fclem: Use `draw_hair`. You do not need `vertex_in`s and `draw_object_infos` is only if you need… | ||||||||||
| .do_static_compilation(true) | ||||||||||
| .additional_info("overlay_sculpt_curves_selection", "drw_clipped"); | ||||||||||
no need for a vertex input.