Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/composite/nodes/node_composite_colorbalance.cc
| Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | static void node_composit_init_colorbalance(bNodeTree *UNUSED(ntree), bNode *node) | ||||
| n->gain[0] = n->gain[1] = n->gain[2] = 1.0f; | n->gain[0] = n->gain[1] = n->gain[2] = 1.0f; | ||||
| n->slope[0] = n->slope[1] = n->slope[2] = 1.0f; | n->slope[0] = n->slope[1] = n->slope[2] = 1.0f; | ||||
| n->offset[0] = n->offset[1] = n->offset[2] = 0.0f; | n->offset[0] = n->offset[1] = n->offset[2] = 0.0f; | ||||
| n->power[0] = n->power[1] = n->power[2] = 1.0f; | n->power[0] = n->power[1] = n->power[2] = 1.0f; | ||||
| node->storage = n; | node->storage = n; | ||||
| } | } | ||||
| void register_node_type_cmp_colorbalance(void) | void register_node_type_cmp_colorbalance() | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| cmp_node_type_base(&ntype, CMP_NODE_COLORBALANCE, "Color Balance", NODE_CLASS_OP_COLOR, 0); | cmp_node_type_base(&ntype, CMP_NODE_COLORBALANCE, "Color Balance", NODE_CLASS_OP_COLOR, 0); | ||||
| ntype.declare = blender::nodes::cmp_node_colorbalance_declare; | ntype.declare = blender::nodes::cmp_node_colorbalance_declare; | ||||
| node_type_size(&ntype, 400, 200, 400); | node_type_size(&ntype, 400, 200, 400); | ||||
| node_type_init(&ntype, node_composit_init_colorbalance); | node_type_init(&ntype, node_composit_init_colorbalance); | ||||
| node_type_storage( | node_type_storage( | ||||
| &ntype, "NodeColorBalance", node_free_standard_storage, node_copy_standard_storage); | &ntype, "NodeColorBalance", node_free_standard_storage, node_copy_standard_storage); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||