Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/composite/nodes/node_composite_distanceMatte.cc
| Show All 36 Lines | static void cmp_node_distance_matte_declare(NodeDeclarationBuilder &b) | ||||
| b.add_output<decl::Color>(N_("Image")); | b.add_output<decl::Color>(N_("Image")); | ||||
| b.add_output<decl::Float>(N_("Matte")); | b.add_output<decl::Float>(N_("Matte")); | ||||
| } | } | ||||
| } // namespace blender::nodes | } // namespace blender::nodes | ||||
| static void node_composit_init_distance_matte(bNodeTree *UNUSED(ntree), bNode *node) | static void node_composit_init_distance_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->channel = 1; | c->channel = 1; | ||||
| c->t1 = 0.1f; | c->t1 = 0.1f; | ||||
| c->t2 = 0.1f; | c->t2 = 0.1f; | ||||
| } | } | ||||
| static void node_composit_buts_distance_matte(uiLayout *layout, | static void node_composit_buts_distance_matte(uiLayout *layout, | ||||
| bContext *UNUSED(C), | bContext *UNUSED(C), | ||||
| Show All 27 Lines | |||||