Blender V4.3
node_fn_project_point.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2024 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#include "BLI_math_matrix.hh"
6
8
10
12{
13 b.is_function_node();
14 b.add_input<decl::Vector>("Vector").subtype(PROP_XYZ);
15 b.add_input<decl::Matrix>("Transform");
16 b.add_output<decl::Vector>("Vector").subtype(PROP_XYZ);
17}
18
20{
21 static auto fn = mf::build::SI2_SO<float3, float4x4, float3>(
22 "Project Point",
23 [](float3 point, float4x4 matrix) { return math::project_point(matrix, point); });
24 builder.set_matching_fn(fn);
25}
26
36
37} // namespace blender::nodes::node_fn_project_point_cc
#define NODE_CLASS_CONVERTER
Definition BKE_node.hh:410
#define FN_NODE_PROJECT_POINT
Definition BKE_node.hh:1423
#define NOD_REGISTER_NODE(REGISTER_FUNC)
in reality light always falls off quadratically Particle Retrieve the data of the particle that spawned the object for example to give variation to multiple instances of an object Point Retrieve information about points in a point cloud Retrieve the edges of an object as it appears to Cycles topology will always appear triangulated Convert a blackbody temperature to an RGB value Normal Generate a perturbed normal from an RGB normal map image Typically used for faking highly detailed surfaces Generate an OSL shader from a file or text data block Image Sample an image file as a texture Gabor Generate Gabor noise Gradient Generate interpolated color and intensity values based on the input vector Magic Generate a psychedelic color texture Voronoi Generate Worley noise based on the distance to random points Typically used to generate textures such as or biological cells Brick Generate a procedural texture producing bricks Texture Retrieve multiple types of texture coordinates nTypically used as inputs for texture nodes Vector Convert a point
@ PROP_XYZ
Definition RNA_types.hh:172
void set_matching_fn(const mf::MultiFunction *fn)
local_group_size(16, 16) .push_constant(Type b
void node_register_type(bNodeType *ntype)
Definition node.cc:1708
VectorT project_point(const MatT &mat, const VectorT &point)
static void node_build_multi_function(NodeMultiFunctionBuilder &builder)
static void node_declare(NodeDeclarationBuilder &b)
MatBase< float, 4, 4 > float4x4
VecBase< float, 3 > float3
void fn_node_type_base(blender::bke::bNodeType *ntype, int type, const char *name, short nclass)
Defines a node type.
Definition BKE_node.hh:218
NodeMultiFunctionBuildFunction build_multi_function
Definition BKE_node.hh:336
NodeDeclareFunction declare
Definition BKE_node.hh:347