Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/composite/nodes/node_composite_brightness.cc
| Show All 23 Lines | |||||
| #include "node_composite_util.hh" | #include "node_composite_util.hh" | ||||
| /* **************** Bright and Contrast ******************** */ | /* **************** Bright and Contrast ******************** */ | ||||
| namespace blender::nodes { | namespace blender::nodes { | ||||
| static void cmp_node_brightcontrast_declare(NodeDeclarationBuilder &b) | static void cmp_node_brightcontrast_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>("Bright").min(-100.0f).max(100.0f); | b.add_input<decl::Float>(N_("Bright")).min(-100.0f).max(100.0f); | ||||
| b.add_input<decl::Float>("Contrast").min(-100.0f).max(100.0f); | b.add_input<decl::Float>(N_("Contrast")).min(-100.0f).max(100.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_brightcontrast(bNodeTree *UNUSED(ntree), bNode *node) | static void node_composit_init_brightcontrast(bNodeTree *UNUSED(ntree), bNode *node) | ||||
| { | { | ||||
| node->custom1 = 1; | node->custom1 = 1; | ||||
| } | } | ||||
| Show All 11 Lines | |||||