From 72cb4548a76dba3fc39c0d8bb36e65f115d0ab22 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 28 Jan 2010 11:40:38 +0000 Subject: Fix #20223: texture stencil does not work on normal. --- source/blender/render/intern/source/texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/render') diff --git a/source/blender/render/intern/source/texture.c b/source/blender/render/intern/source/texture.c index 6aacf99a074..1655418111a 100644 --- a/source/blender/render/intern/source/texture.c +++ b/source/blender/render/intern/source/texture.c @@ -1836,7 +1836,7 @@ void do_material_tex(ShadeInput *shi) 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; -- cgit v1.2.3