Blender  V3.3
node_composite_texture.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 /* **************** TEXTURE ******************** */
11 
13 
15 {
16  b.add_input<decl::Vector>(N_("Offset")).min(-2.0f).max(2.0f).subtype(PROP_TRANSLATION);
17  b.add_input<decl::Vector>(N_("Scale"))
18  .default_value({1.0f, 1.0f, 1.0f})
19  .min(-10.0f)
20  .max(10.0f)
21  .subtype(PROP_XYZ);
22  b.add_output<decl::Float>(N_("Value"));
23  b.add_output<decl::Color>(N_("Color"));
24 }
25 
26 } // namespace blender::nodes::node_composite_texture_cc
27 
29 {
31 
32  static bNodeType ntype;
33 
36  ntype.flag |= NODE_PREVIEW;
37 
38  nodeRegisterType(&ntype);
39 }
#define CMP_NODE_TEXTURE
Definition: BKE_node.h:1219
#define NODE_CLASS_INPUT
Definition: BKE_node.h:345
void nodeRegisterType(struct bNodeType *ntype)
Definition: node.cc:1357
#define NODE_PREVIEW
@ PROP_XYZ
Definition: RNA_types.h:162
@ PROP_TRANSLATION
Definition: RNA_types.h:154
static void cmp_node_texture_declare(NodeDeclarationBuilder &b)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
void register_node_type_cmp_texture()
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
short flag
Definition: BKE_node.h:236
NodeDeclareFunction declare
Definition: BKE_node.h:324
#define N_(msgid)