Fix for bake texture antialiasing commit, AO with constant jitter

didn't work. Also fixed a warning.
This commit is contained in:
2008-03-13 14:36:17 +00:00
parent 6ca3b4a441
commit 89247a96e9
2 changed files with 3 additions and 2 deletions

View File

@@ -1896,6 +1896,8 @@ static void bake_set_shade_input(ObjectInstanceRen *obi, VlakRen *vlr, ShadeInpu
/* cache for shadow */
shi->samplenr= R.shadowsamplenr[shi->thread]++;
shi->mask= 0xFFFF; /* all samples */
shi->u= -u;
shi->v= -v;

View File

@@ -441,8 +441,7 @@ VlakRen *RE_vlakren_copy(ObjectRen *obr, VlakRen *vlr)
int RE_vlakren_get_normal(Render *re, ObjectInstanceRen *obi, VlakRen *vlr, float *nor)
{
float xn, yn, zn, v1[3];
float (*nmat)[3]= obi->nmat;
float v1[3], (*nmat)[3]= obi->nmat;
int flipped= 0;
if(obi->flag & R_TRANSFORMED) {