Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_rgb.c
| Show All 37 Lines | static int gpu_shader_rgb(GPUMaterial *mat, | ||||
| GPUNodeLink *link = GPU_uniformbuf_link_out(mat, node, out, 0); | GPUNodeLink *link = GPU_uniformbuf_link_out(mat, node, out, 0); | ||||
| return GPU_stack_link(mat, node, "set_rgba", in, out, link); | return GPU_stack_link(mat, node, "set_rgba", in, out, link); | ||||
| } | } | ||||
| void register_node_type_sh_rgb(void) | void register_node_type_sh_rgb(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_node_type_base(&ntype, SH_NODE_RGB, "RGB", NODE_CLASS_INPUT, 0); | sh_node_type_base(&ntype, SH_NODE_RGB, "RGB", NODE_CLASS_INPUT); | ||||
| node_type_socket_templates(&ntype, NULL, sh_node_rgb_out); | node_type_socket_templates(&ntype, NULL, sh_node_rgb_out); | ||||
| node_type_gpu(&ntype, gpu_shader_rgb); | node_type_gpu(&ntype, gpu_shader_rgb); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||