Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_object_info.c
| Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | return GPU_stack_link(mat, | ||||
| GPU_builtin(GPU_OBJECT_INFO), | GPU_builtin(GPU_OBJECT_INFO), | ||||
| GPU_constant(&index)); | GPU_constant(&index)); | ||||
| } | } | ||||
| void register_node_type_sh_object_info(void) | void register_node_type_sh_object_info(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_node_type_base(&ntype, SH_NODE_OBJECT_INFO, "Object Info", NODE_CLASS_INPUT, 0); | sh_node_type_base(&ntype, SH_NODE_OBJECT_INFO, "Object Info", NODE_CLASS_INPUT); | ||||
| node_type_socket_templates(&ntype, NULL, sh_node_object_info_out); | node_type_socket_templates(&ntype, NULL, sh_node_object_info_out); | ||||
| node_type_gpu(&ntype, node_shader_gpu_object_info); | node_type_gpu(&ntype, node_shader_gpu_object_info); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||