forked from bartvdbraak/blender
Fix #20223: texture stencil does not work on normal.
This commit is contained in:
parent
a2372d4312
commit
72cb4548a7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user