34 .compositor_domain_priority(2);
36 .default_value({1.0f, 1.0f, 1.0f, 1.0f})
37 .compositor_domain_priority(0);
39 .default_value({1.0f, 1.0f, 1.0f, 1.0f})
40 .compositor_domain_priority(1);
50 bNode &node =
params.add_node(
"CompositorNodeMixRGB");
63 if (item->name !=
nullptr && item->identifier[0] !=
'\0') {
94 const float min[4] = {0.0f, 0.0f, 0.0f, 0.0f};
95 const float max[4] = {1.0f, 1.0f, 1.0f, 1.0f};
127 return "mix_exclusion";
133 return "mix_overlay";
182 ntype.
declare = file_ns::cmp_node_mixrgb_declare;
#define NODE_CLASS_OP_COLOR
#define BLI_assert_unreachable()
bool GPU_stack_link(GPUMaterial *mat, const bNode *node, const char *name, GPUNodeStack *in, GPUNodeStack *out,...)
GPUNodeLink * GPU_constant(const float *num)
bool GPU_link(GPUMaterial *mat, const char *name,...)
void compile(GPUMaterial *material) override
const char * get_shader_function_name()
void operator()(LinkSearchOpParams ¶ms)
GPUNodeStack * get_inputs_array()
GPUNodeStack * get_outputs_array()
GPUNodeLink * get_input_link(StringRef identifier)
GPUNodeStack & get_input(StringRef identifier)
GPUNodeStack & get_output(StringRef identifier)
const bNode & bnode() const
local_group_size(16, 16) .push_constant(Type b
void node_register_type(bNodeType *ntype)
static void node_gather_link_searches(GatherLinkSearchOpParams ¶ms)
static void cmp_node_mixrgb_declare(NodeDeclarationBuilder &b)
static ShaderNode * get_compositor_shader_node(DNode node)
void register_node_type_cmp_mix_rgb()
void cmp_node_type_base(blender::bke::bNodeType *ntype, int type, const char *name, short nclass)
void node_blend_label(const bNodeTree *, const bNode *node, char *label, int label_maxncpy)
const EnumPropertyItem rna_enum_ramp_blend_items[]
void(* labelfunc)(const bNodeTree *ntree, const bNode *node, char *label, int label_maxncpy)
NodeGatherSocketLinkOperationsFunction gather_link_search_ops
NodeDeclareFunction declare
NodeGetCompositorShaderNodeFunction get_compositor_shader_node