Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_tex_voronoi.cc
| Show First 20 Lines • Show All 1,338 Lines • ▼ Show 20 Lines | |||||
| } // namespace blender::nodes::node_shader_tex_voronoi_cc | } // namespace blender::nodes::node_shader_tex_voronoi_cc | ||||
| void register_node_type_sh_tex_voronoi() | void register_node_type_sh_tex_voronoi() | ||||
| { | { | ||||
| namespace file_ns = blender::nodes::node_shader_tex_voronoi_cc; | namespace file_ns = blender::nodes::node_shader_tex_voronoi_cc; | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_fn_node_type_base(&ntype, SH_NODE_TEX_VORONOI, "Voronoi Texture", NODE_CLASS_TEXTURE, 0); | sh_fn_node_type_base(&ntype, SH_NODE_TEX_VORONOI, "Voronoi Texture", NODE_CLASS_TEXTURE); | ||||
| ntype.declare = file_ns::sh_node_tex_voronoi_declare; | ntype.declare = file_ns::sh_node_tex_voronoi_declare; | ||||
| node_type_init(&ntype, file_ns::node_shader_init_tex_voronoi); | node_type_init(&ntype, file_ns::node_shader_init_tex_voronoi); | ||||
| node_type_storage( | node_type_storage( | ||||
| &ntype, "NodeTexVoronoi", node_free_standard_storage, node_copy_standard_storage); | &ntype, "NodeTexVoronoi", node_free_standard_storage, node_copy_standard_storage); | ||||
| node_type_gpu(&ntype, file_ns::node_shader_gpu_tex_voronoi); | node_type_gpu(&ntype, file_ns::node_shader_gpu_tex_voronoi); | ||||
| node_type_update(&ntype, file_ns::node_shader_update_tex_voronoi); | node_type_update(&ntype, file_ns::node_shader_update_tex_voronoi); | ||||
| ntype.build_multi_function = file_ns::sh_node_voronoi_build_multi_function; | ntype.build_multi_function = file_ns::sh_node_voronoi_build_multi_function; | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||