Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_sepcombXYZ.cc
| Show All 22 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.is_function_node(); | ||||
| b.add_input<decl::Vector>("Vector").min(-10000.0f).max(10000.0f); | b.add_input<decl::Vector>(N_("Vector")).min(-10000.0f).max(10000.0f); | ||||
| b.add_output<decl::Float>("X"); | b.add_output<decl::Float>(N_("X")); | ||||
| b.add_output<decl::Float>("Y"); | b.add_output<decl::Float>(N_("Y")); | ||||
| b.add_output<decl::Float>("Z"); | b.add_output<decl::Float>(N_("Z")); | ||||
| }; | }; | ||||
| } // namespace blender::nodes | } // namespace blender::nodes | ||||
| static int gpu_shader_sepxyz(GPUMaterial *mat, | static int gpu_shader_sepxyz(GPUMaterial *mat, | ||||
| bNode *node, | bNode *node, | ||||
| bNodeExecData *UNUSED(execdata), | bNodeExecData *UNUSED(execdata), | ||||
| GPUNodeStack *in, | GPUNodeStack *in, | ||||
| ▲ Show 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | void register_node_type_sh_sepxyz(void) | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||
| namespace blender::nodes { | namespace blender::nodes { | ||||
| static void sh_node_combxyz_declare(NodeDeclarationBuilder &b) | static void sh_node_combxyz_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.is_function_node(); | b.is_function_node(); | ||||
| b.add_input<decl::Float>("X").min(-10000.0f).max(10000.0f); | b.add_input<decl::Float>(N_("X")).min(-10000.0f).max(10000.0f); | ||||
| b.add_input<decl::Float>("Y").min(-10000.0f).max(10000.0f); | b.add_input<decl::Float>(N_("Y")).min(-10000.0f).max(10000.0f); | ||||
| b.add_input<decl::Float>("Z").min(-10000.0f).max(10000.0f); | b.add_input<decl::Float>(N_("Z")).min(-10000.0f).max(10000.0f); | ||||
| b.add_output<decl::Vector>("Vector"); | b.add_output<decl::Vector>(N_("Vector")); | ||||
| }; | }; | ||||
| } // namespace blender::nodes | } // namespace blender::nodes | ||||
| static int gpu_shader_combxyz(GPUMaterial *mat, | static int gpu_shader_combxyz(GPUMaterial *mat, | ||||
| bNode *node, | bNode *node, | ||||
| bNodeExecData *UNUSED(execdata), | bNodeExecData *UNUSED(execdata), | ||||
| GPUNodeStack *in, | GPUNodeStack *in, | ||||
| Show All 23 Lines | |||||