Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_vectMath.c
| Show First 20 Lines • Show All 135 Lines • ▼ Show 20 Lines | static int gpu_shader_vect_math(GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out) | ||||
| return true; | return true; | ||||
| } | } | ||||
| void register_node_type_sh_vect_math(void) | void register_node_type_sh_vect_math(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_node_type_base(&ntype, SH_NODE_VECT_MATH, "Vector Math", NODE_CLASS_CONVERTOR, 0); | sh_node_type_base(&ntype, SH_NODE_VECT_MATH, "Vector Math", NODE_CLASS_CONVERTOR, 0); | ||||
| node_type_compatibility(&ntype, NODE_OLD_SHADING | NODE_NEW_SHADING); | node_type_add_compatibility(&ntype, "CYCLES"); | ||||
| node_type_add_compatibility(&ntype, "BLENDER_RENDER"); | |||||
| node_type_set_category(&ntype, "Converter"); | |||||
| node_type_socket_templates(&ntype, sh_node_vect_math_in, sh_node_vect_math_out); | node_type_socket_templates(&ntype, sh_node_vect_math_in, sh_node_vect_math_out); | ||||
| node_type_label(&ntype, node_vect_math_label); | node_type_label(&ntype, node_vect_math_label); | ||||
| node_type_storage(&ntype, "", NULL, NULL); | node_type_storage(&ntype, "", NULL, NULL); | ||||
| node_type_exec(&ntype, NULL, NULL, node_shader_exec_vect_math); | node_type_exec(&ntype, NULL, NULL, node_shader_exec_vect_math); | ||||
| node_type_gpu(&ntype, gpu_shader_vect_math); | node_type_gpu(&ntype, gpu_shader_vect_math); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||