Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/render/intern')
-rw-r--r--source/blender/render/intern/source/shadeoutput.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/render/intern/source/shadeoutput.c b/source/blender/render/intern/source/shadeoutput.c
index b99bab04b10..9cb30c2ba1a 100644
--- a/source/blender/render/intern/source/shadeoutput.c
+++ b/source/blender/render/intern/source/shadeoutput.c
@@ -1712,9 +1712,9 @@ void shade_lamp_loop(ShadeInput *shi, ShadeResult *shr)
}
if( (ma->mode & (MA_VERTEXCOL|MA_VERTEXCOLP))== MA_VERTEXCOL ) { // vertexcolor light
- shr->emit[0]= shi->r*(shi->emit+shi->vcol[0]);
- shr->emit[1]= shi->g*(shi->emit+shi->vcol[1]);
- shr->emit[2]= shi->b*(shi->emit+shi->vcol[2]);
+ shr->emit[0]= shi->r*(shi->emit+shi->vcol[0]*shi->vcol[3]);
+ shr->emit[1]= shi->g*(shi->emit+shi->vcol[1]*shi->vcol[3]);
+ shr->emit[2]= shi->b*(shi->emit+shi->vcol[2]*shi->vcol[3]);
}
else {
shr->emit[0]= shi->r*shi->emit;