Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/composite/nodes/node_composite_chromaMatte.cc
| Show All 36 Lines | static void cmp_node_chroma_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_chroma_matte(bNodeTree *UNUSED(ntree), bNode *node) | static void node_composit_init_chroma_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 = DEG2RADF(30.0f); | c->t1 = DEG2RADF(30.0f); | ||||
| c->t2 = DEG2RADF(10.0f); | c->t2 = DEG2RADF(10.0f); | ||||
| c->t3 = 0.0f; | c->t3 = 0.0f; | ||||
| c->fsize = 0.0f; | c->fsize = 0.0f; | ||||
| c->fstrength = 1.0f; | c->fstrength = 1.0f; | ||||
| } | } | ||||
| Show All 28 Lines | |||||