Blender  V3.3
node_composite_cornerpin.cc
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2013 Blender Foundation. All rights reserved. */
3 
8 #include "node_composite_util.hh"
9 
11 
13 {
14  b.add_input<decl::Color>(N_("Image")).default_value({1.0f, 1.0f, 1.0f, 1.0f});
15  b.add_input<decl::Vector>(N_("Upper Left"))
16  .default_value({0.0f, 1.0f, 0.0f})
17  .min(0.0f)
18  .max(1.0f);
19  b.add_input<decl::Vector>(N_("Upper Right"))
20  .default_value({1.0f, 1.0f, 0.0f})
21  .min(0.0f)
22  .max(1.0f);
23  b.add_input<decl::Vector>(N_("Lower Left"))
24  .default_value({0.0f, 0.0f, 0.0f})
25  .min(0.0f)
26  .max(1.0f);
27  b.add_input<decl::Vector>(N_("Lower Right"))
28  .default_value({1.0f, 0.0f, 0.0f})
29  .min(0.0f)
30  .max(1.0f);
31  b.add_output<decl::Color>(N_("Image"));
32  b.add_output<decl::Float>(N_("Plane"));
33 }
34 
35 } // namespace blender::nodes::node_composite_cornerpin_cc
36 
38 {
40 
41  static bNodeType ntype;
42 
45 
46  nodeRegisterType(&ntype);
47 }
#define CMP_NODE_CORNERPIN
Definition: BKE_node.h:1287
#define NODE_CLASS_DISTORT
Definition: BKE_node.h:353
void nodeRegisterType(struct bNodeType *ntype)
Definition: node.cc:1357
static void cmp_node_cornerpin_declare(NodeDeclarationBuilder &b)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
void register_node_type_cmp_cornerpin()
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)