Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_light_falloff.cc
| Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | |||||
| /* node type definition */ | /* node type definition */ | ||||
| void register_node_type_sh_light_falloff() | void register_node_type_sh_light_falloff() | ||||
| { | { | ||||
| namespace file_ns = blender::nodes::node_shader_light_falloff_cc; | namespace file_ns = blender::nodes::node_shader_light_falloff_cc; | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_node_type_base(&ntype, SH_NODE_LIGHT_FALLOFF, "Light Falloff", NODE_CLASS_OP_COLOR, 0); | sh_node_type_base(&ntype, SH_NODE_LIGHT_FALLOFF, "Light Falloff", NODE_CLASS_OP_COLOR); | ||||
| node_type_socket_templates( | node_type_socket_templates( | ||||
| &ntype, file_ns::sh_node_light_falloff_in, file_ns::sh_node_light_falloff_out); | &ntype, file_ns::sh_node_light_falloff_in, file_ns::sh_node_light_falloff_out); | ||||
| node_type_size_preset(&ntype, NODE_SIZE_MIDDLE); | node_type_size_preset(&ntype, NODE_SIZE_MIDDLE); | ||||
| node_type_gpu(&ntype, file_ns::node_shader_gpu_light_falloff); | node_type_gpu(&ntype, file_ns::node_shader_gpu_light_falloff); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||