Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/composite/nodes/node_composite_diffMatte.cc
| Show All 36 Lines | static void cmp_node_diff_matte_declare(NodeDeclarationBuilder &b) | ||||
| 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::Color>(N_("Matte")); | ||||
| } | } | ||||
| } // namespace blender::nodes | } // namespace blender::nodes | ||||
| 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>(MEM_AT); | ||||
| node->storage = c; | node->storage = c; | ||||
| c->t1 = 0.1f; | c->t1 = 0.1f; | ||||
| c->t2 = 0.1f; | c->t2 = 0.1f; | ||||
| } | } | ||||
| static void node_composit_buts_diff_matte(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void node_composit_buts_diff_matte(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| uiLayout *col; | uiLayout *col; | ||||
| Show All 20 Lines | |||||