Differential D13043 Diff 44271 source/blender/nodes/composite/nodes/node_composite_colorcorrection.cc
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/composite/nodes/node_composite_colorcorrection.cc
| Show All 23 Lines | |||||
| #include "node_composite_util.hh" | #include "node_composite_util.hh" | ||||
| /* ******************* Color Correction ********************************* */ | /* ******************* Color Correction ********************************* */ | ||||
| namespace blender::nodes { | namespace blender::nodes { | ||||
| static void cmp_node_colorcorrection_declare(NodeDeclarationBuilder &b) | static void cmp_node_colorcorrection_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.add_input<decl::Color>("Image").default_value({1.0f, 1.0f, 1.0f, 1.0f}); | b.add_input<decl::Color>(N_("Image")).default_value({1.0f, 1.0f, 1.0f, 1.0f}); | ||||
| b.add_input<decl::Float>("Mask").default_value(1.0f).min(0.0f).max(1.0f); | b.add_input<decl::Float>(N_("Mask")).default_value(1.0f).min(0.0f).max(1.0f); | ||||
| b.add_output<decl::Color>("Image"); | b.add_output<decl::Color>(N_("Image")); | ||||
| } | } | ||||
| } // namespace blender::nodes | } // namespace blender::nodes | ||||
| static void node_composit_init_colorcorrection(bNodeTree *UNUSED(ntree), bNode *node) | static void node_composit_init_colorcorrection(bNodeTree *UNUSED(ntree), bNode *node) | ||||
| { | { | ||||
| NodeColorCorrection *n = (NodeColorCorrection *)MEM_callocN(sizeof(NodeColorCorrection), | NodeColorCorrection *n = (NodeColorCorrection *)MEM_callocN(sizeof(NodeColorCorrection), | ||||
| "node colorcorrection"); | "node colorcorrection"); | ||||
| Show All 39 Lines | |||||