Nodes: Migrate bump shader node to cpp

Needed for D13496
This commit is contained in:
Aaron Carlisle 2021-12-24 15:42:58 -05:00
parent 291d2a2222
commit 26c7be71d7
2 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ set(SRC
nodes/node_shader_bsdf_translucent.c
nodes/node_shader_bsdf_transparent.c
nodes/node_shader_bsdf_velvet.c
nodes/node_shader_bump.c
nodes/node_shader_bump.cc
nodes/node_shader_camera.c
nodes/node_shader_clamp.cc
nodes/node_shader_common.c

View File

@ -55,13 +55,13 @@ static int gpu_shader_bump(GPUMaterial *mat,
}
/* node type definition */
void register_node_type_sh_bump(void)
void register_node_type_sh_bump()
{
static bNodeType ntype;
sh_node_type_base(&ntype, SH_NODE_BUMP, "Bump", NODE_CLASS_OP_VECTOR, 0);
node_type_socket_templates(&ntype, sh_node_bump_in, sh_node_bump_out);
node_type_storage(&ntype, "", NULL, NULL);
node_type_storage(&ntype, "", nullptr, nullptr);
node_type_gpu(&ntype, gpu_shader_bump);
nodeRegisterType(&ntype);