Blender  V3.3
node_composite_mixrgb.cc
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2006 Blender Foundation. All rights reserved. */
3 
8 #include "node_composite_util.hh"
9 
10 /* **************** MIX RGB ******************** */
11 
13 
15 {
16  b.add_input<decl::Float>(N_("Fac")).default_value(1.0f).min(0.0f).max(1.0f).subtype(PROP_FACTOR);
17  b.add_input<decl::Color>(N_("Image")).default_value({1.0f, 1.0f, 1.0f, 1.0f});
18  b.add_input<decl::Color>(N_("Image"), "Image_001").default_value({1.0f, 1.0f, 1.0f, 1.0f});
19  b.add_output<decl::Color>(N_("Image"));
20 }
21 
22 } // namespace blender::nodes::node_composite_mixrgb_cc
23 
25 {
26  namespace file_ns = blender::nodes::node_composite_mixrgb_cc;
27 
28  static bNodeType ntype;
29 
31  ntype.flag |= NODE_PREVIEW;
34 
35  nodeRegisterType(&ntype);
36 }
#define CMP_NODE_MIX_RGB
Definition: BKE_node.h:1199
#define NODE_CLASS_OP_COLOR
Definition: BKE_node.h:347
void nodeRegisterType(struct bNodeType *ntype)
Definition: node.cc:1357
#define NODE_PREVIEW
@ PROP_FACTOR
Definition: RNA_types.h:144
static void cmp_node_mixrgb_declare(NodeDeclarationBuilder &b)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
void register_node_type_cmp_mix_rgb()
void cmp_node_type_base(bNodeType *ntype, int type, const char *name, short nclass)
void node_blend_label(const bNodeTree *UNUSED(ntree), const bNode *node, char *label, int maxlen)
Definition: node_util.c:179
Defines a node type.
Definition: BKE_node.h:226
short flag
Definition: BKE_node.h:236
void(* labelfunc)(const struct bNodeTree *ntree, const struct bNode *node, char *label, int maxlen)
Definition: BKE_node.h:256
NodeDeclareFunction declare
Definition: BKE_node.h:324
#define N_(msgid)