Index: source/blender/nodes/intern/CMP_nodes/CMP_curves.c =================================================================== --- source/blender/nodes/intern/CMP_nodes/CMP_curves.c (Revision 12827) +++ source/blender/nodes/intern/CMP_nodes/CMP_curves.c (Arbeitskopie) @@ -123,6 +123,8 @@ static bNodeSocketType cmp_node_curve_rgb_in[]= { { SOCK_VALUE, 1, "Fac", 1.0f, 0.0f, 0.0f, 1.0f, -1.0f, 1.0f}, { SOCK_RGBA, 1, "Image", 0.0f, 0.0f, 0.0f, 1.0f, -1.0f, 1.0f}, + { SOCK_RGBA, 1, "White Point", 1.0f, 1.0f, 1.0f, 1.0f, -1.0f, 1.0f}, + { SOCK_RGBA, 1, "Black Point", 0.0f, 0.0f, 0.0f, 1.0f, -1.0f, 1.0f}, { -1, 0, "" } }; @@ -157,7 +159,7 @@ static void node_composit_exec_curve_rgb(void *data, bNode *node, bNodeStack **in, bNodeStack **out) { - /* stack order input: fac, image */ + /* stack order input: fac, image, white point, black point */ /* stack order output: image */ if(out[0]->hasoutput==0) @@ -168,6 +170,7 @@ curvemapping_evaluateRGBF(node->storage, out[0]->vec, in[1]->vec); } else { + curvemapping_set_black_white(node->storage, in[3]->vec, in[2]->vec); /* make output size of input image */ CompBuf *cbuf= in[1]->data; CompBuf *stackbuf= alloc_compbuf(cbuf->x, cbuf->y, CB_RGBA, 1); /* allocs */