Blender  V3.3
node_composite_gamma.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 /* **************** Gamma Tools ******************** */
11 
13 
15 {
16  b.add_input<decl::Color>(N_("Image")).default_value({1.0f, 1.0f, 1.0f, 1.0f});
17  b.add_input<decl::Float>(N_("Gamma"))
18  .default_value(1.0f)
19  .min(0.001f)
20  .max(10.0f)
21  .subtype(PROP_UNSIGNED);
22  b.add_output<decl::Color>(N_("Image"));
23 }
24 
25 } // namespace blender::nodes::node_composite_gamma_cc
26 
28 {
29  namespace file_ns = blender::nodes::node_composite_gamma_cc;
30 
31  static bNodeType ntype;
32 
35 
36  nodeRegisterType(&ntype);
37 }
#define CMP_NODE_GAMMA
Definition: BKE_node.h:1245
#define NODE_CLASS_OP_COLOR
Definition: BKE_node.h:347
void nodeRegisterType(struct bNodeType *ntype)
Definition: node.cc:1357
@ PROP_UNSIGNED
Definition: RNA_types.h:142
static void cmp_node_gamma_declare(NodeDeclarationBuilder &b)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
void register_node_type_cmp_gamma()
void cmp_node_type_base(bNodeType *ntype, int type, const char *name, short nclass)
Defines a node type.
Definition: BKE_node.h:226
NodeDeclareFunction declare
Definition: BKE_node.h:324
#define N_(msgid)