Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_tex_white_noise.cc
| Show First 20 Lines • Show All 190 Lines • ▼ Show 20 Lines | |||||
| } // namespace blender::nodes::node_shader_tex_white_noise_cc | } // namespace blender::nodes::node_shader_tex_white_noise_cc | ||||
| void register_node_type_sh_tex_white_noise() | void register_node_type_sh_tex_white_noise() | ||||
| { | { | ||||
| namespace file_ns = blender::nodes::node_shader_tex_white_noise_cc; | namespace file_ns = blender::nodes::node_shader_tex_white_noise_cc; | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_fn_node_type_base( | sh_fn_node_type_base(&ntype, SH_NODE_TEX_WHITE_NOISE, "White Noise Texture", NODE_CLASS_TEXTURE); | ||||
| &ntype, SH_NODE_TEX_WHITE_NOISE, "White Noise Texture", NODE_CLASS_TEXTURE, 0); | |||||
| ntype.declare = file_ns::sh_node_tex_white_noise_declare; | ntype.declare = file_ns::sh_node_tex_white_noise_declare; | ||||
| node_type_init(&ntype, file_ns::node_shader_init_tex_white_noise); | node_type_init(&ntype, file_ns::node_shader_init_tex_white_noise); | ||||
| node_type_gpu(&ntype, file_ns::gpu_shader_tex_white_noise); | node_type_gpu(&ntype, file_ns::gpu_shader_tex_white_noise); | ||||
| node_type_update(&ntype, file_ns::node_shader_update_tex_white_noise); | node_type_update(&ntype, file_ns::node_shader_update_tex_white_noise); | ||||
| ntype.build_multi_function = file_ns::sh_node_noise_build_multi_function; | ntype.build_multi_function = file_ns::sh_node_noise_build_multi_function; | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||