Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/composite/nodes/node_composite_diff_matte.cc
| Show All 13 Lines | |||||
| namespace blender::nodes::node_composite_diff_matte_cc { | namespace blender::nodes::node_composite_diff_matte_cc { | ||||
| static void cmp_node_diff_matte_declare(NodeDeclarationBuilder &b) | static void cmp_node_diff_matte_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.add_input<decl::Color>(N_("Image 1")).default_value({1.0f, 1.0f, 1.0f, 1.0f}); | b.add_input<decl::Color>(N_("Image 1")).default_value({1.0f, 1.0f, 1.0f, 1.0f}); | ||||
| b.add_input<decl::Color>(N_("Image 2")).default_value({1.0f, 1.0f, 1.0f, 1.0f}); | b.add_input<decl::Color>(N_("Image 2")).default_value({1.0f, 1.0f, 1.0f, 1.0f}); | ||||
| b.add_output<decl::Color>(N_("Image")); | b.add_output<decl::Color>(N_("Image")); | ||||
| b.add_output<decl::Color>(N_("Matte")); | b.add_output<decl::Float>(N_("Matte")); | ||||
| } | } | ||||
| static void node_composit_init_diff_matte(bNodeTree *UNUSED(ntree), bNode *node) | static void node_composit_init_diff_matte(bNodeTree *UNUSED(ntree), bNode *node) | ||||
| { | { | ||||
| NodeChroma *c = MEM_cnew<NodeChroma>(__func__); | NodeChroma *c = MEM_cnew<NodeChroma>(__func__); | ||||
| node->storage = c; | node->storage = c; | ||||
| c->t1 = 0.1f; | c->t1 = 0.1f; | ||||
| c->t2 = 0.1f; | c->t2 = 0.1f; | ||||
| Show All 29 Lines | |||||