Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_vectTransform.c
| Show First 20 Lines • Show All 197 Lines • ▼ Show 20 Lines | static int gpu_shader_vect_transform(GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out) | ||||
| return true; | return true; | ||||
| } | } | ||||
| void register_node_type_sh_vect_transform(void) | void register_node_type_sh_vect_transform(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_node_type_base(&ntype, SH_NODE_VECT_TRANSFORM, "Vector Transform", NODE_CLASS_CONVERTOR, 0); | sh_node_type_base(&ntype, SH_NODE_VECT_TRANSFORM, "Vector Transform", 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, "Vector"); | |||||
| node_type_init(&ntype, node_shader_init_vect_transform); | node_type_init(&ntype, node_shader_init_vect_transform); | ||||
| node_type_socket_templates(&ntype, sh_node_vect_transform_in, sh_node_vect_transform_out); | node_type_socket_templates(&ntype, sh_node_vect_transform_in, sh_node_vect_transform_out); | ||||
| node_type_storage(&ntype, "NodeShaderVectTransform", node_free_standard_storage, node_copy_standard_storage); | node_type_storage(&ntype, "NodeShaderVectTransform", node_free_standard_storage, node_copy_standard_storage); | ||||
| node_type_exec(&ntype, NULL, NULL, node_shader_exec_vect_transform); | node_type_exec(&ntype, NULL, NULL, node_shader_exec_vect_transform); | ||||
| node_type_gpu(&ntype, gpu_shader_vect_transform); | node_type_gpu(&ntype, gpu_shader_vect_transform); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||