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
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-07-02 14:42:29 +0400
committerTon Roosendaal <ton@blender.org>2006-07-02 14:42:29 +0400
commit7b07fcca9107cb3f2e623bc774e39eaef14ee9c6 (patch)
tree2151c984f271d92d823adc745a4f22a4024f5a79 /source
parentf2d80ee097f070c5191324a46db8e698e979fc35 (diff)
Bugfix #4564
Environment mapping on channel "Mirror color" didn't support stencilling.
Diffstat (limited to 'source')
-rw-r--r--source/blender/render/intern/source/texture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/render/intern/source/texture.c b/source/blender/render/intern/source/texture.c
index dd6092d4a1b..94975804704 100644
--- a/source/blender/render/intern/source/texture.c
+++ b/source/blender/render/intern/source/texture.c
@@ -1707,7 +1707,7 @@ void do_material_tex(ShadeInput *shi)
if(mtex->mapto & MAP_COLMIR) {
// exception for envmap only
if(tex->type==TEX_ENVMAP && mtex->blendtype==MTEX_BLEND) {
- fact= texres.tin*mtex->colfac;
+ fact= texres.tin*colfac;
facm= 1.0- fact;
shi->refcol[0]= fact + facm*shi->refcol[0];
shi->refcol[1]= fact*tcol[0] + facm*shi->refcol[1];