Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/composite/nodes/node_composite_levels.cc
| Show All 23 Lines | |||||
| #include "node_composite_util.hh" | #include "node_composite_util.hh" | ||||
| /* **************** LEVELS ******************** */ | /* **************** LEVELS ******************** */ | ||||
| namespace blender::nodes { | namespace blender::nodes { | ||||
| static void cmp_node_levels_declare(NodeDeclarationBuilder &b) | static void cmp_node_levels_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.add_input<decl::Color>("Image").default_value({0.0f, 0.0f, 0.0f, 1.0f}); | b.add_input<decl::Color>(N_("Image")).default_value({0.0f, 0.0f, 0.0f, 1.0f}); | ||||
| b.add_output<decl::Float>("Mean"); | b.add_output<decl::Float>(N_("Mean")); | ||||
| b.add_output<decl::Float>("Std Dev"); | b.add_output<decl::Float>(N_("Std Dev")); | ||||
| } | } | ||||
| } // namespace blender::nodes | } // namespace blender::nodes | ||||
| static void node_composit_init_view_levels(bNodeTree *UNUSED(ntree), bNode *node) | static void node_composit_init_view_levels(bNodeTree *UNUSED(ntree), bNode *node) | ||||
| { | { | ||||
| node->custom1 = 1; /* All channels. */ | node->custom1 = 1; /* All channels. */ | ||||
| } | } | ||||
| Show All 11 Lines | |||||