? rt.patch Index: shadeinput.c =================================================================== RCS file: /cvsroot/bf-blender/blender/source/blender/render/intern/source/shadeinput.c,v retrieving revision 1.13 diff -u -r1.13 shadeinput.c --- shadeinput.c 4 Apr 2007 13:18:30 -0000 1.13 +++ shadeinput.c 25 Apr 2007 18:38:58 -0000 @@ -664,17 +664,20 @@ scol->col[0]= (l*((float)cp3[3]) - u*((float)cp1[3]) - v*((float)cp2[3]))/255.0f; scol->col[1]= (l*((float)cp3[2]) - u*((float)cp1[2]) - v*((float)cp2[2]))/255.0f; scol->col[2]= (l*((float)cp3[1]) - u*((float)cp1[1]) - v*((float)cp2[1]))/255.0f; + scol->col[3]= (l*((float)cp3[0]) - u*((float)cp1[0]) - v*((float)cp2[0]))/255.0f; } if(shi->totcol) { shi->vcol[0]= shi->col[0].col[0]; shi->vcol[1]= shi->col[0].col[1]; shi->vcol[2]= shi->col[0].col[2]; + shi->vcol[3]= shi->col[0].col[3]; } else { shi->vcol[0]= 0.0f; shi->vcol[1]= 0.0f; shi->vcol[2]= 0.0f; + shi->vcol[3]= 0.0f; } } @@ -716,6 +719,7 @@ shi->vcol[0]= 1.0f; shi->vcol[1]= 1.0f; shi->vcol[2]= 1.0f; + shi->vcol[3]= 1.0f; } if(tface && tface->tpage) render_realtime_texture(shi, tface->tpage); @@ -734,6 +738,7 @@ shi->vcol[0]= 1.0f; shi->vcol[1]= 1.0f; shi->vcol[2]= 1.0f; + shi->vcol[3]= 1.0f; } } } Index: shadeoutput.c =================================================================== RCS file: /cvsroot/bf-blender/blender/source/blender/render/intern/source/shadeoutput.c,v retrieving revision 1.17 diff -u -r1.17 shadeoutput.c --- shadeoutput.c 4 Apr 2007 13:18:30 -0000 1.17 +++ shadeoutput.c 25 Apr 2007 18:38:59 -0000 @@ -823,6 +823,7 @@ shi->r= shi->vcol[0]; shi->g= shi->vcol[1]; shi->b= shi->vcol[2]; + shi->alpha= shi->vcol[3]; } if(ma->texco) @@ -1445,6 +1446,7 @@ shi->r= shi->vcol[0]; shi->g= shi->vcol[1]; shi->b= shi->vcol[2]; + shi->alpha*= shi->vcol[3]; /* modulate with alpha itself */ } if(ma->texco) do_material_tex(shi);