Differential D13303 Diff 45854 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 First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | static void node_composit_init_colorcorrection(bNodeTree *UNUSED(ntree), bNode *node) | ||||
| n->highlights.gain = 1.0f; | n->highlights.gain = 1.0f; | ||||
| n->highlights.gamma = 1.0f; | n->highlights.gamma = 1.0f; | ||||
| n->highlights.lift = 0.0f; | n->highlights.lift = 0.0f; | ||||
| n->highlights.saturation = 1.0f; | n->highlights.saturation = 1.0f; | ||||
| node->custom1 = 7; // red + green + blue enabled | node->custom1 = 7; // red + green + blue enabled | ||||
| node->storage = n; | node->storage = n; | ||||
| } | } | ||||
| void register_node_type_cmp_colorcorrection(void) | void register_node_type_cmp_colorcorrection() | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| cmp_node_type_base(&ntype, CMP_NODE_COLORCORRECTION, "Color Correction", NODE_CLASS_OP_COLOR, 0); | cmp_node_type_base(&ntype, CMP_NODE_COLORCORRECTION, "Color Correction", NODE_CLASS_OP_COLOR, 0); | ||||
| ntype.declare = blender::nodes::cmp_node_colorcorrection_declare; | ntype.declare = blender::nodes::cmp_node_colorcorrection_declare; | ||||
| node_type_size(&ntype, 400, 200, 600); | node_type_size(&ntype, 400, 200, 600); | ||||
| node_type_init(&ntype, node_composit_init_colorcorrection); | node_type_init(&ntype, node_composit_init_colorcorrection); | ||||
| node_type_storage( | node_type_storage( | ||||
| &ntype, "NodeColorCorrection", node_free_standard_storage, node_copy_standard_storage); | &ntype, "NodeColorCorrection", node_free_standard_storage, node_copy_standard_storage); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||