- normals in previewrender showed bumpmap inverted (a bump became a hole)

just added a flip!
This commit is contained in:
2004-04-07 20:45:47 +00:00
parent 1da3f3dfc8
commit 6710a87b5a

View File

@@ -773,8 +773,14 @@ static void shade_preview_pixel(ShadeInput *shi, float *vec, int x, int y,char *
/* Clear displase vec for preview */
shi->displace[0]= shi->displace[1]= shi->displace[2]= 0.0;
/* normals flipped in render... */
if(mat->mapto & MAP_NORM) VecMulf(shi->vn, -1.0);
do_material_tex(shi);
/* normals flipped in render... */
if(mat->mapto & MAP_NORM) VecMulf(shi->vn, -1.0);
if(mat->texco & TEXCO_REFL) {
/* normals in render are pointing different... rhm */