Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_attribute.cc
| Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | |||||
| /* node type definition */ | /* node type definition */ | ||||
| void register_node_type_sh_attribute() | void register_node_type_sh_attribute() | ||||
| { | { | ||||
| namespace file_ns = blender::nodes::node_shader_attribute_cc; | namespace file_ns = blender::nodes::node_shader_attribute_cc; | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_node_type_base(&ntype, SH_NODE_ATTRIBUTE, "Attribute", NODE_CLASS_INPUT, 0); | sh_node_type_base(&ntype, SH_NODE_ATTRIBUTE, "Attribute", NODE_CLASS_INPUT); | ||||
| node_type_socket_templates(&ntype, nullptr, file_ns::sh_node_attribute_out); | node_type_socket_templates(&ntype, nullptr, file_ns::sh_node_attribute_out); | ||||
| node_type_init(&ntype, file_ns::node_shader_init_attribute); | node_type_init(&ntype, file_ns::node_shader_init_attribute); | ||||
| node_type_storage( | node_type_storage( | ||||
| &ntype, "NodeShaderAttribute", node_free_standard_storage, node_copy_standard_storage); | &ntype, "NodeShaderAttribute", node_free_standard_storage, node_copy_standard_storage); | ||||
| node_type_gpu(&ntype, file_ns::node_shader_gpu_attribute); | node_type_gpu(&ntype, file_ns::node_shader_gpu_attribute); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||