3 very simple new composite nodes that I wanted for working with here. Hope the code is ok,
they work ok in testing here and get done what I need, any checks or fixes are welcome. * Separate RGBA: Separates an input RGBA image into its R, G, B and A channels * Separate HSVA: Separates an input RGBA image into H, S, V and A channels * Set Alpha: Takes an input RGBA image and an alpha value channel and combines them into a single RGBA image channel. You can also set the alpha for the entire image with the number field when there's no input alpha channel. TODO: Allow input alpha channel with no input image, in order to output a solid colour, with alpha.
This commit is contained in:
@@ -185,7 +185,7 @@ void nodeShaderSynchronizeID(struct bNode *node, int copyto);
|
||||
/* switch material render loop */
|
||||
void set_node_shader_lamp_loop(void (*lamp_loop_func)(struct ShadeInput *, struct ShadeResult *));
|
||||
|
||||
/* ************** COMPOSIT NODES *************** */
|
||||
/* ************** COMPOSITE NODES *************** */
|
||||
|
||||
/* note: types are needed to restore callbacks, don't change values */
|
||||
#define CMP_NODE_VIEWER 201
|
||||
@@ -203,6 +203,9 @@ void set_node_shader_lamp_loop(void (*lamp_loop_func)(struct ShadeInput *, str
|
||||
#define CMP_NODE_MAP_VALUE 213
|
||||
#define CMP_NODE_TIME 214
|
||||
#define CMP_NODE_VECBLUR 215
|
||||
#define CMP_NODE_SEPRGBA 216
|
||||
#define CMP_NODE_SEPHSVA 217
|
||||
#define CMP_NODE_SETALPHA 218
|
||||
|
||||
#define CMP_NODE_IMAGE 220
|
||||
#define CMP_NODE_R_RESULT 221
|
||||
|
||||
Reference in New Issue
Block a user