Merged changes in the trunk up to revision 43881.
[blender.git] / source / blender / render / intern / source / shadeoutput.c
index 0e9cfd11a68c721e036ae5a6b01fbfbec9368e8f..6b021d0be42a4ce8adec12df8f4c5da056967a6d 100644 (file)
@@ -1669,6 +1669,12 @@ void shade_lamp_loop(ShadeInput *shi, ShadeResult *shr)
                        if(ma->mode & (MA_FACETEXTURE_ALPHA))
                                shi->alpha= shi->vcol[3];
                }
+               else if(ma->vcol_alpha) {
+                       shi->r= shi->vcol[0];
+                       shi->g= shi->vcol[1];
+                       shi->b= shi->vcol[2];
+                       shi->alpha= shi->vcol[3];
+               }
                else if(ma->mode & (MA_VERTEXCOLP)) {
                        float neg_alpha = 1.0f - shi->vcol[3];
                        shi->r= shi->r*neg_alpha + shi->vcol[0]*shi->vcol[3];