Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/composite/nodes/node_composite_alphaOver.cc
| Show All 36 Lines | static void cmp_node_alphaover_declare(NodeDeclarationBuilder &b) | ||||
| b.add_input<decl::Color>(N_("Image"), "Image_001").default_value({1.0f, 1.0f, 1.0f, 1.0f}); | b.add_input<decl::Color>(N_("Image"), "Image_001").default_value({1.0f, 1.0f, 1.0f, 1.0f}); | ||||
| b.add_output<decl::Color>(N_("Image")); | b.add_output<decl::Color>(N_("Image")); | ||||
| } | } | ||||
| } // namespace blender::nodes | } // namespace blender::nodes | ||||
| static void node_alphaover_init(bNodeTree *UNUSED(ntree), bNode *node) | static void node_alphaover_init(bNodeTree *UNUSED(ntree), bNode *node) | ||||
| { | { | ||||
| node->storage = MEM_cnew<NodeTwoFloats>(__func__); | node->storage = MEM_cnew<NodeTwoFloats>(MEM_AT); | ||||
| } | } | ||||
| static void node_composit_buts_alphaover(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void node_composit_buts_alphaover(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| uiLayout *col; | uiLayout *col; | ||||
| col = uiLayoutColumn(layout, true); | col = uiLayoutColumn(layout, true); | ||||
| uiItemR(col, ptr, "use_premultiply", UI_ITEM_R_SPLIT_EMPTY_NAME, nullptr, ICON_NONE); | uiItemR(col, ptr, "use_premultiply", UI_ITEM_R_SPLIT_EMPTY_NAME, nullptr, ICON_NONE); | ||||
| Show All 16 Lines | |||||