Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/composite/nodes/node_composite_keying.cc
| Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | static void cmp_node_keying_declare(NodeDeclarationBuilder &b) | ||||
| b.add_output<decl::Float>(N_("Matte")); | b.add_output<decl::Float>(N_("Matte")); | ||||
| b.add_output<decl::Float>(N_("Edges")); | b.add_output<decl::Float>(N_("Edges")); | ||||
| } | } | ||||
| } // namespace blender::nodes | } // namespace blender::nodes | ||||
| static void node_composit_init_keying(bNodeTree *UNUSED(ntree), bNode *node) | static void node_composit_init_keying(bNodeTree *UNUSED(ntree), bNode *node) | ||||
| { | { | ||||
| NodeKeyingData *data = MEM_cnew<NodeKeyingData>(__func__); | NodeKeyingData *data = MEM_cnew<NodeKeyingData>(MEM_AT); | ||||
| data->screen_balance = 0.5f; | data->screen_balance = 0.5f; | ||||
| data->despill_balance = 0.5f; | data->despill_balance = 0.5f; | ||||
| data->despill_factor = 1.0f; | data->despill_factor = 1.0f; | ||||
| data->edge_kernel_radius = 3; | data->edge_kernel_radius = 3; | ||||
| data->edge_kernel_tolerance = 0.1f; | data->edge_kernel_tolerance = 0.1f; | ||||
| data->clip_black = 0.0f; | data->clip_black = 0.0f; | ||||
| data->clip_white = 1.0f; | data->clip_white = 1.0f; | ||||
| Show All 34 Lines | |||||