Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_output_linestyle.cc
| Show All 15 Lines | |||||
| * The Original Code is Copyright (C) 2005 Blender Foundation. | * The Original Code is Copyright (C) 2005 Blender Foundation. | ||||
| * All rights reserved. | * All rights reserved. | ||||
| */ | */ | ||||
| #include "node_shader_util.hh" | #include "node_shader_util.hh" | ||||
| /* **************** OUTPUT ******************** */ | /* **************** OUTPUT ******************** */ | ||||
| namespace blender::nodes::node_shader_output_linestyle_cc { | |||||
| static bNodeSocketTemplate sh_node_output_linestyle_in[] = { | static bNodeSocketTemplate sh_node_output_linestyle_in[] = { | ||||
| {SOCK_RGBA, N_("Color"), 1.0f, 0.0f, 1.0f, 1.0f}, | {SOCK_RGBA, N_("Color"), 1.0f, 0.0f, 1.0f, 1.0f}, | ||||
| {SOCK_FLOAT, N_("Color Fac"), 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, PROP_FACTOR}, | {SOCK_FLOAT, N_("Color Fac"), 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, PROP_FACTOR}, | ||||
| {SOCK_FLOAT, N_("Alpha"), 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, PROP_FACTOR}, | {SOCK_FLOAT, N_("Alpha"), 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, PROP_FACTOR}, | ||||
| {SOCK_FLOAT, N_("Alpha Fac"), 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, PROP_FACTOR}, | {SOCK_FLOAT, N_("Alpha Fac"), 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, PROP_FACTOR}, | ||||
| {-1, ""}, | {-1, ""}, | ||||
| }; | }; | ||||
| } // namespace blender::nodes::node_shader_output_linestyle_cc | |||||
| /* node type definition */ | /* node type definition */ | ||||
| void register_node_type_sh_output_linestyle(void) | void register_node_type_sh_output_linestyle(void) | ||||
| { | { | ||||
| namespace file_ns = blender::nodes::node_shader_output_linestyle_cc; | |||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_node_type_base(&ntype, SH_NODE_OUTPUT_LINESTYLE, "Line Style Output", NODE_CLASS_OUTPUT, 0); | sh_node_type_base(&ntype, SH_NODE_OUTPUT_LINESTYLE, "Line Style Output", NODE_CLASS_OUTPUT, 0); | ||||
| node_type_socket_templates(&ntype, sh_node_output_linestyle_in, nullptr); | node_type_socket_templates(&ntype, file_ns::sh_node_output_linestyle_in, nullptr); | ||||
| node_type_init(&ntype, nullptr); | node_type_init(&ntype, nullptr); | ||||
| ntype.no_muting = true; | ntype.no_muting = true; | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||