Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/composite/nodes/node_composite_colorbalance.cc
| Show All 23 Lines | |||||
| #include "node_composite_util.hh" | #include "node_composite_util.hh" | ||||
| /* ******************* Color Balance ********************************* */ | /* ******************* Color Balance ********************************* */ | ||||
| namespace blender::nodes { | namespace blender::nodes { | ||||
| static void cmp_node_colorbalance_declare(NodeDeclarationBuilder &b) | static void cmp_node_colorbalance_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.add_input<decl::Float>("Fac").default_value(1.0f).min(0.0f).max(1.0f).subtype(PROP_FACTOR); | b.add_input<decl::Float>(N_("Fac")).default_value(1.0f).min(0.0f).max(1.0f).subtype(PROP_FACTOR); | ||||
| 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_output<decl::Color>("Image"); | b.add_output<decl::Color>(N_("Image")); | ||||
| } | } | ||||
| } // namespace blender::nodes | } // namespace blender::nodes | ||||
| /* Sync functions update formula parameters for other modes, such that the result is comparable. | /* Sync functions update formula parameters for other modes, such that the result is comparable. | ||||
| * Note that the results are not exactly the same due to differences in color handling | * Note that the results are not exactly the same due to differences in color handling | ||||
| * (sRGB conversion happens for LGG), | * (sRGB conversion happens for LGG), | ||||
| * but this keeps settings comparable. | * but this keeps settings comparable. | ||||
| ▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines | |||||