Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_tex_pointdensity.cc
| Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | |||||
| /* node type definition */ | /* node type definition */ | ||||
| void register_node_type_sh_tex_pointdensity() | void register_node_type_sh_tex_pointdensity() | ||||
| { | { | ||||
| namespace file_ns = blender::nodes::node_shader_tex_pointdensity_cc; | namespace file_ns = blender::nodes::node_shader_tex_pointdensity_cc; | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_node_type_base(&ntype, SH_NODE_TEX_POINTDENSITY, "Point Density", NODE_CLASS_TEXTURE, 0); | sh_node_type_base(&ntype, SH_NODE_TEX_POINTDENSITY, "Point Density", NODE_CLASS_TEXTURE); | ||||
| node_type_socket_templates( | node_type_socket_templates( | ||||
| &ntype, file_ns::sh_node_tex_pointdensity_in, file_ns::sh_node_tex_pointdensity_out); | &ntype, file_ns::sh_node_tex_pointdensity_in, file_ns::sh_node_tex_pointdensity_out); | ||||
| node_type_init(&ntype, file_ns::node_shader_init_tex_pointdensity); | node_type_init(&ntype, file_ns::node_shader_init_tex_pointdensity); | ||||
| node_type_storage(&ntype, | node_type_storage(&ntype, | ||||
| "NodeShaderTexPointDensity", | "NodeShaderTexPointDensity", | ||||
| file_ns::node_shader_free_tex_pointdensity, | file_ns::node_shader_free_tex_pointdensity, | ||||
| file_ns::node_shader_copy_tex_pointdensity); | file_ns::node_shader_copy_tex_pointdensity); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||