[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [26364] trunk/blender/source/blender/ render/intern/source/texture.c: Fix #20223: texture stencil does not work on normal.
Brecht Van Lommel
brecht at blender.org
Thu Jan 28 12:40:38 CET 2010
Revision: 26364
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26364
Author: blendix
Date: 2010-01-28 12:40:38 +0100 (Thu, 28 Jan 2010)
Log Message:
-----------
Fix #20223: texture stencil does not work on normal.
Modified Paths:
--------------
trunk/blender/source/blender/render/intern/source/texture.c
Modified: trunk/blender/source/blender/render/intern/source/texture.c
===================================================================
--- trunk/blender/source/blender/render/intern/source/texture.c 2010-01-28 10:57:31 UTC (rev 26363)
+++ trunk/blender/source/blender/render/intern/source/texture.c 2010-01-28 11:40:38 UTC (rev 26364)
@@ -1836,7 +1836,7 @@
TexResult ttexr = {0, 0, 0, 0, 0, texres.talpha, NULL}; // temp TexResult
float tco[3], texv[3], cd, ud, vd, du, dv, idu, idv;
const int fromrgb = ((tex->type == TEX_IMAGE) || ((tex->flag & TEX_COLORBAND)!=0));
- const float bf = 0.04f*Tnor*mtex->norfac;
+ const float bf = 0.04f*Tnor*stencilTin*mtex->norfac;
// disable internal bump eval
float* nvec = texres.nor;
texres.nor = NULL;
More information about the Bf-blender-cvs
mailing list