Fix #20662: normal map rendering with negative factor didn't flip

the direction correctly.
This commit is contained in:
Brecht Van Lommel 2010-01-30 14:41:51 +00:00
parent dde838ec5e
commit 147e782979

@ -2108,7 +2108,7 @@ void do_material_tex(ShadeInput *shi)
texres.nor[0] = -texres.nor[0];
texres.nor[1] = -texres.nor[1];
}
fact = Tnor*tex->norfac;
fact = Tnor*fabs(tex->norfac);
if (fact>1.f) fact = 1.f;
facm = 1.f-fact;
if(mtex->normapspace == MTEX_NSPACE_TANGENT) {