Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_output_light.cc
| Show All 31 Lines | |||||
| /* node type definition */ | /* node type definition */ | ||||
| void register_node_type_sh_output_light() | void register_node_type_sh_output_light() | ||||
| { | { | ||||
| namespace file_ns = blender::nodes::node_shader_output_light_cc; | namespace file_ns = blender::nodes::node_shader_output_light_cc; | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_node_type_base(&ntype, SH_NODE_OUTPUT_LIGHT, "Light Output", NODE_CLASS_OUTPUT, 0); | sh_node_type_base(&ntype, SH_NODE_OUTPUT_LIGHT, "Light Output", NODE_CLASS_OUTPUT); | ||||
| node_type_socket_templates(&ntype, file_ns::sh_node_output_light_in, nullptr); | node_type_socket_templates(&ntype, file_ns::sh_node_output_light_in, nullptr); | ||||
| ntype.no_muting = true; | ntype.no_muting = true; | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||