Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_ies_light.cc
| Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
| /* node type definition */ | /* node type definition */ | ||||
| void register_node_type_sh_tex_ies() | void register_node_type_sh_tex_ies() | ||||
| { | { | ||||
| namespace file_ns = blender::nodes::node_shader_ies_light_cc; | namespace file_ns = blender::nodes::node_shader_ies_light_cc; | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_node_type_base(&ntype, SH_NODE_TEX_IES, "IES Texture", NODE_CLASS_TEXTURE, 0); | sh_node_type_base(&ntype, SH_NODE_TEX_IES, "IES Texture", NODE_CLASS_TEXTURE); | ||||
| node_type_socket_templates(&ntype, file_ns::sh_node_tex_ies_in, file_ns::sh_node_tex_ies_out); | node_type_socket_templates(&ntype, file_ns::sh_node_tex_ies_in, file_ns::sh_node_tex_ies_out); | ||||
| node_type_init(&ntype, file_ns::node_shader_init_tex_ies); | node_type_init(&ntype, file_ns::node_shader_init_tex_ies); | ||||
| node_type_storage( | node_type_storage( | ||||
| &ntype, "NodeShaderTexIES", node_free_standard_storage, node_copy_standard_storage); | &ntype, "NodeShaderTexIES", node_free_standard_storage, node_copy_standard_storage); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||