diff --git a/source/blender/editors/space_node/drawnode.c b/source/blender/editors/space_node/drawnode.c index 28e211d78d6..084ec53ff7e 100644 --- a/source/blender/editors/space_node/drawnode.c +++ b/source/blender/editors/space_node/drawnode.c @@ -177,7 +177,7 @@ static void node_buts_mix_rgb(uiLayout *layout, bContext *UNUSED(C), PointerRNA col = uiLayoutColumn(layout, FALSE); row = uiLayoutRow(col, TRUE); uiItemR(row, ptr, "blend_type", 0, "", ICON_NONE); - if (ntree->type == NTREE_COMPOSIT) + if (ELEM(ntree->type, NTREE_COMPOSIT, NTREE_TEXTURE)) uiItemR(row, ptr, "use_alpha", 0, "", ICON_IMAGE_RGB_ALPHA); uiItemR(col, ptr, "use_clamp", 0, NULL, ICON_NONE); diff --git a/source/blender/nodes/texture/nodes/node_texture_mixRgb.c b/source/blender/nodes/texture/nodes/node_texture_mixRgb.c index b482a76ae8e..d9361923ac6 100644 --- a/source/blender/nodes/texture/nodes/node_texture_mixRgb.c +++ b/source/blender/nodes/texture/nodes/node_texture_mixRgb.c @@ -52,6 +52,10 @@ static void colorfn(float *out, TexParams *p, bNode *node, bNodeStack **in, shor tex_input_rgba(col1, in[1], p, thread); tex_input_rgba(col2, in[2], p, thread); + + /* use alpha */ + if (node->custom2 & 1) + fac *= col2[3]; CLAMP(fac, 0.0f, 1.0f);