Blender  V3.3
node_composite_normal.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 /* **************** NORMAL ******************** */
11 
13 
15 {
16  b.add_input<decl::Vector>(N_("Normal"))
17  .default_value({0.0f, 0.0f, 1.0f})
18  .min(-1.0f)
19  .max(1.0f)
20  .subtype(PROP_DIRECTION);
21  b.add_output<decl::Vector>(N_("Normal"))
22  .default_value({0.0f, 0.0f, 1.0f})
23  .min(-1.0f)
24  .max(1.0f)
25  .subtype(PROP_DIRECTION);
26  b.add_output<decl::Float>(N_("Dot"));
27 }
28 
29 } // namespace blender::nodes::node_composite_normal_cc
30 
32 {
33  namespace file_ns = blender::nodes::node_composite_normal_cc;
34 
35  static bNodeType ntype;
36 
39 
40  nodeRegisterType(&ntype);
41 }
#define NODE_CLASS_OP_VECTOR
Definition: BKE_node.h:348
#define CMP_NODE_NORMAL
Definition: BKE_node.h:1202
void nodeRegisterType(struct bNodeType *ntype)
Definition: node.cc:1357
@ PROP_DIRECTION
Definition: RNA_types.h:155
static void cmp_node_normal_declare(NodeDeclarationBuilder &b)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
void register_node_type_cmp_normal()
void cmp_node_type_base(bNodeType *ntype, int type, const char *name, short nclass)
#define min(a, b)
Definition: sort.c:35
Defines a node type.
Definition: BKE_node.h:226
NodeDeclareFunction declare
Definition: BKE_node.h:324
#define N_(msgid)