Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_sepcombXYZ.cc
| Show All 21 Lines | |||||
| */ | */ | ||||
| #include "node_shader_util.h" | #include "node_shader_util.h" | ||||
| namespace blender::nodes { | namespace blender::nodes { | ||||
| static void sh_node_sepxyz_declare(NodeDeclarationBuilder &b) | static void sh_node_sepxyz_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.is_function_node(); | |||||
| b.add_input<decl::Vector>("Vector").min(-10000.0f).max(10000.0f); | b.add_input<decl::Vector>("Vector").min(-10000.0f).max(10000.0f); | ||||
| b.add_output<decl::Float>("X"); | b.add_output<decl::Float>("X"); | ||||
| b.add_output<decl::Float>("Y"); | b.add_output<decl::Float>("Y"); | ||||
| b.add_output<decl::Float>("Z"); | b.add_output<decl::Float>("Z"); | ||||
| }; | }; | ||||
| } // namespace blender::nodes | } // namespace blender::nodes | ||||
| ▲ Show 20 Lines • Show All 103 Lines • Show Last 20 Lines | |||||