Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_uvmap.c
| Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| /* node type definition */ | /* node type definition */ | ||||
| void register_node_type_sh_uvmap(void) | void register_node_type_sh_uvmap(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_node_type_base(&ntype, SH_NODE_UVMAP, "UV Map", NODE_CLASS_INPUT, 0); | sh_node_type_base(&ntype, SH_NODE_UVMAP, "UV Map", NODE_CLASS_INPUT, 0); | ||||
| node_type_compatibility(&ntype, NODE_NEW_SHADING); | node_type_add_compatibility(&ntype, "CYCLES"); | ||||
| node_type_set_category(&ntype, "Input"); | |||||
| node_type_socket_templates(&ntype, NULL, sh_node_uvmap_out); | node_type_socket_templates(&ntype, NULL, sh_node_uvmap_out); | ||||
| node_type_size_preset(&ntype, NODE_SIZE_MIDDLE); | node_type_size_preset(&ntype, NODE_SIZE_MIDDLE); | ||||
| node_type_init(&ntype, node_shader_init_uvmap); | node_type_init(&ntype, node_shader_init_uvmap); | ||||
| node_type_storage(&ntype, "NodeShaderUVMap", node_free_standard_storage, node_copy_standard_storage); | node_type_storage(&ntype, "NodeShaderUVMap", node_free_standard_storage, node_copy_standard_storage); | ||||
| node_type_gpu(&ntype, node_shader_gpu_uvmap); | node_type_gpu(&ntype, node_shader_gpu_uvmap); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||