Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_normal_map.cc
| Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Lines | |||||
| /* node type definition */ | /* node type definition */ | ||||
| void register_node_type_sh_normal_map() | void register_node_type_sh_normal_map() | ||||
| { | { | ||||
| namespace file_ns = blender::nodes::node_shader_normal_map_cc; | namespace file_ns = blender::nodes::node_shader_normal_map_cc; | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_node_type_base(&ntype, SH_NODE_NORMAL_MAP, "Normal Map", NODE_CLASS_OP_VECTOR, 0); | sh_node_type_base(&ntype, SH_NODE_NORMAL_MAP, "Normal Map", NODE_CLASS_OP_VECTOR); | ||||
| node_type_socket_templates( | node_type_socket_templates( | ||||
| &ntype, file_ns::sh_node_normal_map_in, file_ns::sh_node_normal_map_out); | &ntype, file_ns::sh_node_normal_map_in, file_ns::sh_node_normal_map_out); | ||||
| node_type_size_preset(&ntype, NODE_SIZE_MIDDLE); | node_type_size_preset(&ntype, NODE_SIZE_MIDDLE); | ||||
| node_type_init(&ntype, file_ns::node_shader_init_normal_map); | node_type_init(&ntype, file_ns::node_shader_init_normal_map); | ||||
| node_type_storage( | node_type_storage( | ||||
| &ntype, "NodeShaderNormalMap", node_free_standard_storage, node_copy_standard_storage); | &ntype, "NodeShaderNormalMap", node_free_standard_storage, node_copy_standard_storage); | ||||
| node_type_gpu(&ntype, file_ns::gpu_shader_normal_map); | node_type_gpu(&ntype, file_ns::gpu_shader_normal_map); | ||||
| node_type_exec(&ntype, nullptr, nullptr, file_ns::node_shader_exec_normal_map); | node_type_exec(&ntype, nullptr, nullptr, file_ns::node_shader_exec_normal_map); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||